configuration and fix concerning window state
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2024-11-07 14:19:00 +01:00
parent 7abec12620
commit 39adf907b1
2 changed files with 54 additions and 9 deletions

View File

@ -117,7 +117,7 @@ def process_high_temp(box_name, context, local_context, payload):
return (local_context['output_temperature'], False)
def process_window(box_name, context, local_context, sub_key, payload):
local_context['window_state'][sub_key] = 'closed' if (payload.lower() in ('true', 'close', 'closed')) else 'open'
local_context['window_state'][sub_key] = 'closed' if (payload.lower() in ('false', 'close', 'closed')) else 'open'
_calculate_output_temperature(local_context)
return (local_context['output_temperature'], False)