File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -166,13 +166,14 @@ def _get_location_data(self, loc_id: str) -> GwEntityData:
166166 if str (ctrl_state ) in ("cooling" , "heating" , "preheating" ):
167167 data ["control_state" ] = str (ctrl_state )
168168 self ._count += 1
169- else :
169+ if str ( ctrl_state ) == "off" :
170170 data ["control_state" ] = "idle"
171171 self ._count += 1
172172 # control_state not present in regulation+mode off (issue #776)
173173 elif self .smile_version >= version .parse ("3.2.0" ):
174174 data ["control_state" ] = "idle"
175175 self ._count += 1
176+ # TODO: add testcase with regulation_mode off and control_state key not present
176177
177178 # Thermostat data (presets, temperatures etc)
178179 self ._climate_data (loc_id , zone , data )
Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ def __init__(self) -> None:
259259 self .smile_model_id : str | None
260260 self .smile_name : str
261261 self .smile_type : str
262+ self .smile_version : str
262263 self .smile_zigbee_mac_address : str | None
263264 self .therms_with_offset_func : list [str ] = []
264265 self ._zones : dict [str , GwEntityData ] = {}
You can’t perform that action at this time.
0 commit comments