Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc1481bc0d | ||
|
|
d21836bf76 | ||
|
|
28ae6542fb |
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
[version]
|
[version]
|
||||||
major = 1
|
major = 1
|
||||||
minor = 5
|
minor = 5
|
||||||
patch = 3
|
patch = 4
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
date = "2026-09-27"
|
date = "2026-09-27"
|
||||||
time = "21:35:33"
|
time = "21:55:47"
|
||||||
|
|||||||
+25
-13
@@ -362,20 +362,32 @@ def get_status() -> dict:
|
|||||||
auto_controller
|
auto_controller
|
||||||
.manual_target_temperature
|
.manual_target_temperature
|
||||||
)
|
)
|
||||||
elif (
|
elif tion_status is not None:
|
||||||
tion_status is not None
|
schedule = schedule_service
|
||||||
and schedule_service is not None
|
|
||||||
):
|
|
||||||
resolution = schedule_service.resolve()
|
|
||||||
|
|
||||||
if (
|
if schedule is not None:
|
||||||
resolution.enabled
|
# Ручной override имеет приоритет над AUTO.
|
||||||
and resolution.auto_active
|
if (
|
||||||
and resolution.auto_target_temp is not None
|
schedule.override_active
|
||||||
):
|
and schedule.override_settings.target_temp
|
||||||
tion_status["target_temp"] = (
|
is not None
|
||||||
resolution.auto_target_temp
|
):
|
||||||
)
|
tion_status["target_temp"] = (
|
||||||
|
schedule.override_settings.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
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user