File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -541,12 +541,6 @@ def _all_appliances(self) -> None:
541541 }
542542 )
543543
544- # Find the connected heating/cooling device (heater_central), e.g. heat-pump or gas-fired heater
545- onoff_boiler = self ._modules .find ("./module/protocols/onoff_boiler" )
546- open_therm_boiler = self ._modules .find ("./module/protocols/open_therm_boiler" )
547- self ._on_off_device = onoff_boiler is not None
548- self ._opentherm_device = open_therm_boiler is not None
549-
550544 for appliance in self ._appliances .findall ("./appliance" ):
551545 appl = Munch ()
552546
Original file line number Diff line number Diff line change @@ -276,6 +276,12 @@ async def connect(self) -> bool:
276276 "Plugwise invalid setup error, check log for more info."
277277 )
278278
279+ # Find the connected heating/cooling device (heater_central), e.g. heat-pump or gas-fired heater
280+ onoff_boiler : etree = result .find ("./module/protocols/onoff_boiler" )
281+ open_therm_boiler : etree = result .find ("./module/protocols/open_therm_boiler" )
282+ self ._on_off_device = onoff_boiler is not None
283+ self ._opentherm_device = open_therm_boiler is not None
284+
279285 # Determine smile specifics
280286 await self ._smile_detect (result , dsmrmain )
281287
You can’t perform that action at this time.
0 commit comments