fix : v1.4.22 исправил включение бризера. Теперь отправляется power on и speed
This commit is contained in:
+11
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user