python-kasa/kasa
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
..
cli Add https parameter to device class factory (#1184) 2024-10-22 18:09:35 +01:00
experimental Update dump_devinfo for smart camera protocol (#1169) 2024-10-18 12:06:22 +01:00
interfaces Create common Time module and add time set cli command (#1157) 2024-10-15 08:59:25 +01:00
iot Create common Time module and add time set cli command (#1157) 2024-10-15 08:59:25 +01:00
smart Improve supported module checks for hub children (#1188) 2024-10-23 17:17:27 +02:00
tests Improve supported module checks for hub children (#1188) 2024-10-23 17:17:27 +02:00
__init__.py Make device initialisation easier by reducing required imports (#936) 2024-06-03 19:06:54 +01:00
aestransport.py Enable newer encrypted discovery protocol (#1168) 2024-10-16 15:28:27 +01:00
cachedzoneinfo.py Cache zoneinfo for smart devices (#1156) 2024-10-08 12:21:01 +01:00
credentials.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
device_factory.py Add https parameter to device class factory (#1184) 2024-10-22 18:09:35 +01:00
device_type.py Initial TapoCamera support (#1165) 2024-10-16 16:53:52 +01:00
device.py Create common Time module and add time set cli command (#1157) 2024-10-15 08:59:25 +01:00
deviceconfig.py Initial TapoCamera support (#1165) 2024-10-16 16:53:52 +01:00
discover.py Add https parameter to device class factory (#1184) 2024-10-22 18:09:35 +01:00
emeterstatus.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00
exceptions.py Add https parameter to device class factory (#1184) 2024-10-22 18:09:35 +01:00
feature.py Disable automatic updating of latest firmware (#1103) 2024-08-30 18:01:54 +01:00
httpclient.py Initial TapoCamera support (#1165) 2024-10-16 16:53:52 +01:00
iotprotocol.py Redact sensitive info from debug logs (#1069) 2024-07-17 19:57:09 +02:00
json.py Generate AES KeyPair lazily (#687) 2024-01-23 15:29:27 +00:00
klaptransport.py Send empty dictionary instead of null for iot queries (#1145) 2024-10-01 12:47:36 +01:00
module.py Create common Time module and add time set cli command (#1157) 2024-10-15 08:59:25 +01:00
modulemapping.py Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
modulemapping.pyi Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
protocol.py Redact sensitive info from debug logs (#1069) 2024-07-17 19:57:09 +02:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00
smartprotocol.py Update dump_devinfo for smart camera protocol (#1169) 2024-10-18 12:06:22 +01:00
xortransport.py Redact sensitive info from debug logs (#1069) 2024-07-17 19:57:09 +02:00