File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ def __init__(self) -> None:
247247 # 'cooling_state' = on means cooling is active.
248248 ###################################################################
249249 self ._cooling_active = False
250- self ._cooling_enabled = False
250+ self ._cooling_enabled : bool
251251
252252 self .gateway_id : str
253253 self .gw_data : GatewayData = {}
@@ -798,7 +798,7 @@ def _update_elga_cooling(self, data: GwEntityData) -> None:
798798 # Techneco Elga has cooling-capability
799799 self ._cooling_present = True
800800 data ["model" ] = "Generic heater/cooler"
801- self ._cooling_enabled = data ["elga_status_code" ] in (8 , 9 )
801+ self ._cooling_enabled = data ["binary_sensors" ][ "cooling_enabled" ] = data [ " elga_status_code" ] in (8 , 9 )
802802 data ["binary_sensors" ]["cooling_state" ] = self ._cooling_active = (
803803 data ["elga_status_code" ] == 8
804804 )
You can’t perform that action at this time.
0 commit comments