fix : v1.4.22 исправил включение бризера. Теперь отправляется power on и speed
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
[version]
|
[version]
|
||||||
major = 1
|
major = 1
|
||||||
minor = 4
|
minor = 4
|
||||||
patch = 1
|
patch = 2
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
date = "2026-09-27"
|
date = "2026-09-27"
|
||||||
time = "00:38:36"
|
time = "09:21:09"
|
||||||
|
|||||||
+11
-1
@@ -150,8 +150,18 @@ class TionController:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
async def power_on(self) -> TionState:
|
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({
|
return await self._set({
|
||||||
"state": "on"
|
"state": "on",
|
||||||
|
"fan_speed": speed,
|
||||||
})
|
})
|
||||||
|
|
||||||
async def power_off(self) -> TionState:
|
async def power_off(self) -> TionState:
|
||||||
|
|||||||
Reference in New Issue
Block a user