work : исправил включение бризера. Теперь отправляется power on и speed

This commit is contained in:
2026-09-27 09:21:53 +03:00
parent 940f63ff94
commit c61a6f8797
2 changed files with 13 additions and 3 deletions
+11 -1
View File
@@ -150,8 +150,18 @@ class TionController:
"""
async def power_on(self) -> TionState:
# Tion 4S reliably wakes up when the power command also carries
# a valid fan speed. The device keeps the last speed even while
# powered off, so preserve it instead of forcing a new value.
speed = (
self._state.fan_speed
if self._state is not None
else MIN_FAN_SPEED
)
return await self._set({
"state": "on"
"state": "on",
"fan_speed": speed,
})
async def power_off(self) -> TionState: