File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -227,12 +227,15 @@ def _device_data_climate(
227227 device_data ["mode" ] = "heat"
228228 if self ._cooling_present :
229229 device_data ["mode" ] = "heat_cool"
230+
230231 # Adam: add off-mode based on regulation_mode = off
231- if (
232- "select_regulation_mode" in self .gw_devices [self .gateway_id ]
233- and self .gw_devices [self .gateway_id ]["select_regulation_mode" ] == "off"
234- ):
235- device_data ["mode" ] = "off"
232+ # or cool-mode for regulation_mode = cooling
233+ gateway = self .gw_devices [self .gateway_id ]
234+ if "regulation_modes" in gateway :
235+ if gateway ["select_regulation_mode" ] == "off" :
236+ device_data ["mode" ] = "off"
237+ if gateway ["select_regulation_mode" ] == "cooling" :
238+ device_data ["mode" ] = "cool"
236239
237240 if "None" not in avail_schedules :
238241 loc_schedule_states = {}
You can’t perform that action at this time.
0 commit comments