python-kasa/kasa/smart/modules
Steven B. cd0a74ca96
Improve supported module checks for hub children (#1188)
No devices in `fixtures/smart/child` support the `get_device_time` or
`get_device_usage` methods so this PR tests for whether the device is a
hub child and marks those modules/methods as not supported. This
prevents features being erroneously created on child devices.

It also moves the logic for getting the time from the parent module
behind getting it from the child module which was masking the creation
of these unsupported modules.
2024-10-23 17:17:27 +02:00
..
__init__.py Add support for T100 motion sensor (#1079) 2024-07-24 15:48:33 +02:00
alarm.py Add missing type hints to alarm module (#1111) 2024-09-10 17:20:00 +01:00
autooff.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
batterysensor.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
brightness.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
childdevice.py Update docs with more howto examples (#968) 2024-06-19 09:53:40 +01:00
cloud.py Move feature initialization from __init__ to _initialize_features (#1140) 2024-09-28 20:14:31 +02:00
color.py Move feature initialization from __init__ to _initialize_features (#1140) 2024-09-28 20:14:31 +02:00
colortemperature.py Enable setting brightness with color temp for smart devices (#1091) 2024-07-31 15:52:27 +01:00
contactsensor.py Move feature initialization from __init__ to _initialize_features (#1140) 2024-09-28 20:14:31 +02:00
devicemodule.py Improve supported module checks for hub children (#1188) 2024-10-23 17:17:27 +02:00
energy.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
fan.py Move feature initialization from __init__ to _initialize_features (#1140) 2024-09-28 20:14:31 +02:00
firmware.py Disable automatic updating of latest firmware (#1103) 2024-08-30 18:01:54 +01:00
frostprotection.py Handle module errors more robustly and add query params to light preset and transition (#1036) 2024-07-04 08:02:50 +01:00
humiditysensor.py Move feature initialization from __init__ to _initialize_features (#1140) 2024-09-28 20:14:31 +02:00
led.py Update smart request parameter handling (#1061) 2024-07-23 19:02:20 +01:00
light.py Make iot time timezone aware (#1147) 2024-10-08 08:16:51 +01:00
lighteffect.py Make iot time timezone aware (#1147) 2024-10-08 08:16:51 +01:00
lightpreset.py Make iot time timezone aware (#1147) 2024-10-08 08:16:51 +01:00
lightstripeffect.py Fix iot light effect brightness (#1092) 2024-07-31 15:58:48 +01:00
lighttransition.py Make iot time timezone aware (#1147) 2024-10-08 08:16:51 +01:00
motionsensor.py Add support for T100 motion sensor (#1079) 2024-07-24 15:48:33 +02:00
reportmode.py Move feature initialization from __init__ to _initialize_features (#1140) 2024-09-28 20:14:31 +02:00
temperaturecontrol.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
temperaturesensor.py Move feature initialization from __init__ to _initialize_features (#1140) 2024-09-28 20:14:31 +02:00
time.py Improve supported module checks for hub children (#1188) 2024-10-23 17:17:27 +02:00
waterleaksensor.py Add waterleak alert timestamp (#1162) 2024-10-18 13:18:12 +02:00