python-kasa/kasa/tests/smart/modules
Teemu R a044063526
Use first known thermostat state as main state (#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 https://github.com/home-assistant/core/issues/121335
2024-07-11 15:11:50 +02:00
..
__init__.py Add T315 fixture, tests for humidity&temperature modules (#802) 2024-03-06 18:04:09 +00:00
test_autooff.py Support smart child modules queries (#967) 2024-06-10 16:47:00 +02:00
test_contact.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00
test_fan.py Do not expose child modules on parent devices (#964) 2024-06-10 05:59:37 +01:00
test_firmware.py Configure mypy to run in virtual environment and fix resulting issues (#989) 2024-06-19 15:07:59 +02:00
test_humidity.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00
test_light_effect.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
test_light_strip_effect.py Fix changing brightness when effect is active (#1019) 2024-07-01 13:59:24 +02:00
test_lighttransition.py Update light transition module to work with child devices (#1017) 2024-06-27 18:52:54 +01:00
test_temperature.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00
test_temperaturecontrol.py Use first known thermostat state as main state (#1054) 2024-07-11 15:11:50 +02:00
test_waterleak.py Make Light and Fan a common module interface (#911) 2024-05-13 17:34:44 +01:00