fix: v1.5.6 поправил баг отображения температуры 30 град при переходе между режимами. в api.py были не верные отступы.
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
[version]
|
[version]
|
||||||
major = 1
|
major = 1
|
||||||
minor = 5
|
minor = 5
|
||||||
patch = 5
|
patch = 6
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
date = "2026-09-27"
|
date = "2026-09-27"
|
||||||
time = "22:09:12"
|
time = "22:15:49"
|
||||||
|
|||||||
+20
-20
@@ -362,33 +362,33 @@ def get_status() -> dict:
|
|||||||
auto_controller
|
auto_controller
|
||||||
.manual_target_temperature
|
.manual_target_temperature
|
||||||
)
|
)
|
||||||
elif tion_status is not None:
|
elif tion_status is not None:
|
||||||
schedule = schedule_service
|
schedule = schedule_service
|
||||||
|
|
||||||
|
if schedule is not None:
|
||||||
|
# Ручной override имеет приоритет над AUTO.
|
||||||
|
if (
|
||||||
|
schedule.override_active
|
||||||
|
and schedule.override_settings.target_temp
|
||||||
|
is not None
|
||||||
|
):
|
||||||
|
tion_status["target_temp"] = (
|
||||||
|
schedule.override_settings.target_temp
|
||||||
|
)
|
||||||
|
|
||||||
|
else:
|
||||||
|
resolution = schedule.resolve()
|
||||||
|
|
||||||
if schedule is not None:
|
|
||||||
# Ручной override имеет приоритет над AUTO.
|
|
||||||
if (
|
if (
|
||||||
schedule.override_active
|
resolution.enabled
|
||||||
and schedule.override_settings.target_temp
|
and resolution.auto_active
|
||||||
|
and resolution.auto_target_temp
|
||||||
is not None
|
is not None
|
||||||
):
|
):
|
||||||
tion_status["target_temp"] = (
|
tion_status["target_temp"] = (
|
||||||
schedule.override_settings.target_temp
|
resolution.auto_target_temp
|
||||||
)
|
)
|
||||||
|
|
||||||
else:
|
|
||||||
resolution = schedule.resolve()
|
|
||||||
|
|
||||||
if (
|
|
||||||
resolution.enabled
|
|
||||||
and resolution.auto_active
|
|
||||||
and resolution.auto_target_temp
|
|
||||||
is not None
|
|
||||||
):
|
|
||||||
tion_status["target_temp"] = (
|
|
||||||
resolution.auto_target_temp
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user