From 41a4d6cd1bd9e50bdda06ef5dbc9601f82dfea19 Mon Sep 17 00:00:00 2001 From: Fedorov Dmitriy Date: Sun, 27 Sep 2026 09:22:31 +0300 Subject: [PATCH] =?UTF-8?q?fix=20:=20v1.4.22=20=D0=B8=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=B2=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B1=D1=80=D0=B8=D0=B7=D0=B5=D1=80=D0=B0?= =?UTF-8?q?.=20=D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=BE=D1=82=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=D1=81=D1=8F=20power?= =?UTF-8?q?=20on=20=D0=B8=20speed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Version.toml | 4 ++-- app/tion/controller.py | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Version.toml b/Version.toml index 425a88f..fc903d1 100644 --- a/Version.toml +++ b/Version.toml @@ -1,8 +1,8 @@ [version] major = 1 minor = 4 -patch = 1 +patch = 2 [build] date = "2026-09-27" -time = "00:38:36" +time = "09:21:09" diff --git a/app/tion/controller.py b/app/tion/controller.py index b29f67b..0160d90 100644 --- a/app/tion/controller.py +++ b/app/tion/controller.py @@ -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: