python-kasa/kasa/smart/modules
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
..
__init__.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
alarm.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
autooff.py Handle module errors more robustly and add query params to light preset and transition (#1043) 2024-07-04 08:29:53 +01:00
batterysensor.py Handle module errors more robustly and add query params to light preset and transition (#1043) 2024-07-04 08:29:53 +01:00
brightness.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
childdevice.py Update docs with more howto examples (#968) 2024-06-19 09:53:40 +01:00
cloud.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
color.py Rename bulb interface to light and move fan and light interface to interfaces (#910) 2024-05-11 19:40:08 +01:00
colortemperature.py Rename bulb interface to light and move fan and light interface to interfaces (#910) 2024-05-11 19:40:08 +01:00
contactsensor.py Make module names consistent and remove redundant module casting (#909) 2024-05-11 19:28:18 +01:00
devicemodule.py Handle module errors more robustly and add query params to light preset and transition (#1043) 2024-07-04 08:29:53 +01:00
energy.py Add common energy module and deprecate device emeter attributes (#976) 2024-06-17 11:22:05 +01:00
fan.py Fix fan speed level when off and derive smart fan module from common fan interface (#957) 2024-06-06 15:18:34 +02:00
firmware.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
frostprotection.py Handle module errors more robustly and add query params to light preset and transition (#1043) 2024-07-04 08:29:53 +01:00
humiditysensor.py Handle module errors more robustly and add query params to light preset and transition (#1043) 2024-07-04 08:29:53 +01:00
led.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
light.py Fix set_state for common light modules (#929) 2024-05-22 15:33:55 +02:00
lighteffect.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
lightpreset.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
lightstripeffect.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
lighttransition.py Defer module updates for less volatile modules (pick 1052) (#1056) 2024-07-11 16:54:15 +01:00
reportmode.py Handle module errors more robustly and add query params to light preset and transition (#1043) 2024-07-04 08:29:53 +01:00
temperaturecontrol.py Use first known thermostat state as main state (pick #1054) (#1057) 2024-07-11 17:05:40 +01:00
temperaturesensor.py Handle module errors more robustly and add query params to light preset and transition (#1043) 2024-07-04 08:29:53 +01:00
time.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
waterleaksensor.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00