python-kasa/kasa
Steven B 377fa06d39
Use first known thermostat state as main state (pick #1054) (#1057)
Pick commit a044063526 from #1054 

Instead of trying to use the first state when multiple are reported,
iterate over the known states and pick the first matching.
This will fix an issue where the device reports extra states (like
`low_battery`) while having a known mode active.

Related to home-assistant/core#121335
2024-07-11 17:05:40 +01:00
..
interfaces Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
iot Make parent attribute on device consistent across iot and smart (#1023) 2024-07-01 11:51:06 +01:00
smart Use first known thermostat state as main state (pick #1054) (#1057) 2024-07-11 17:05:40 +01:00
tests Use first known thermostat state as main state (pick #1054) (#1057) 2024-07-11 17:05:40 +01:00
__init__.py Make device initialisation easier by reducing required imports (#936) 2024-06-03 19:06:54 +01:00
aestransport.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
cli.py Cleanup cli output (#1000) 2024-06-23 07:09:13 +01:00
credentials.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
device_factory.py Move SmartBulb into SmartDevice (#874) 2024-04-29 18:19:44 +01:00
device_type.py Add temperature control module for smart (#848) 2024-04-22 12:39:07 +01:00
device.py Make parent attribute on device consistent across iot and smart (#1023) 2024-07-01 11:51:06 +01:00
deviceconfig.py Make device initialisation easier by reducing required imports (#936) 2024-06-03 19:06:54 +01:00
discover.py Drop python3.8 support (#992) 2024-06-19 20:24:12 +02:00
emeterstatus.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
exceptions.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
feature.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
httpclient.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
iotprotocol.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
json.py Generate AES KeyPair lazily (#687) 2024-01-23 15:29:27 +00:00
klaptransport.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
module.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02: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 Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +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 Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
xortransport.py Drop python3.8 support (#992) 2024-06-19 20:24:12 +02:00