python-kasa/kasa
Teemu R 30c4e6a6a3
Cleanup credentials handling (#605)
* credentials: don't allow none to simplify checks

* Implement __bool__ for credentials

* Cleanup klaptransport cred usage

* Cleanup deviceconfig and tapodevice

* fix linting

* Pass dummy credentials for tests

* Remove __bool__ dunder and add docs to credentials

* Check for cred noneness in tapodevice.update()
2024-01-03 19:26:52 +01:00
..
modules Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
tapo Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
tests Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
__init__.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
aestransport.py Fix dump_devinfo for unauthenticated (#593) 2023-12-29 20:42:02 +01:00
cli.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
credentials.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
device_factory.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
device_type.py Add support for tapo bulbs (#558) 2023-12-05 20:07:10 +01:00
deviceconfig.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
discover.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
effects.py Add effect support for light strips (#293) 2022-03-21 22:10:12 +01:00
emeterstatus.py Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
exceptions.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
iotprotocol.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
json.py Use orjson when already installed or with speedups extra (#466) 2023-06-18 01:03:04 +02:00
klaptransport.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
protocol.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00
smartbulb.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartdevice.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartdimmer.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartlightstrip.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartplug.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartprotocol.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartstrip.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00