converters

This commit is contained in:
2024-11-12 12:06:45 +01:00
parent ee0efb6c19
commit 8417454f5b

View File

@ -142,7 +142,7 @@ def process_high_temp(box_name, context, local_context, payload):
return True
def process_window(box_name, context, local_context, sub_key, payload):
local_context['window_state'][sub_key] = 'closed' if (payload.lower() in ('false', 'close', 'closed')) else 'open'
local_context['window_state'][sub_key] = CONVERTERS["window_contact_input"][box["windows"][sub_key]["converter"]](payload)
_calculate_output_temperature(local_context)
return True