python-kasa/kasa/smart
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
..
modules Use first known thermostat state as main state (pick #1054) (#1057) 2024-07-11 17:05:40 +01:00
__init__.py Move SmartBulb into SmartDevice (#874) 2024-04-29 18:19:44 +01:00
effects.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
smartchilddevice.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
smartdevice.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
smartmodule.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00