File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-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,14 @@ 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 = self ._domain_objects .find ("./module/protocols/onoff_boiler" )
281+ open_therm_boiler = self ._domain_objects .find (
282+ "./module/protocols/open_therm_boiler"
283+ )
284+ self ._on_off_device = onoff_boiler is not None
285+ self ._opentherm_device = open_therm_boiler is not None
286+
279287 # Determine smile specifics
280288 await self ._smile_detect (result , dsmrmain )
281289
You can’t perform that action at this time.
0 commit comments