@@ -268,7 +268,7 @@ def _energy_device_info_finder(self, appliance: etree, appl: Munch) -> Munch:
268268 if self .smile_type == "power" :
269269 locator = "./logs/point_log/electricity_point_meter"
270270 mod_type = "electricity_point_meter"
271- module_data = self ._get_module_data (appliance , self . _domain_objects , locator , mod_type )
271+ module_data = self ._get_module_data (appliance , locator , mod_type )
272272 appl .hardware = module_data ["hardware_version" ]
273273 appl .model = module_data ["vendor_model" ]
274274 appl .vendor_name = module_data ["vendor_name" ]
@@ -279,7 +279,7 @@ def _energy_device_info_finder(self, appliance: etree, appl: Munch) -> Munch:
279279 if self .smile (ADAM ):
280280 locator = "./logs/interval_log/electricity_interval_meter"
281281 mod_type = "electricity_interval_meter"
282- module_data = self ._get_module_data (appliance , self . _domain_objects , locator , mod_type )
282+ module_data = self ._get_module_data (appliance , locator , mod_type )
283283 # Filter appliance without zigbee_mac, it's an orphaned device
284284 appl .zigbee_mac = module_data ["zigbee_mac_address" ]
285285 if appl .zigbee_mac is None :
@@ -294,7 +294,7 @@ def _energy_device_info_finder(self, appliance: etree, appl: Munch) -> Munch:
294294
295295 return appl # pragma: no cover
296296
297- def _appliance_info_finder (self , appliance : etree , appl : Munch ) -> Munch :
297+ def _appliance_info_finder (self , appl : Munch , appliance : etree ) -> Munch :
298298 """Collect device info (Smile/Stretch, Thermostats, OpenTherm/On-Off): firmware, model and vendor name."""
299299 # Collect gateway device info
300300 if appl .pwclass == "gateway" :
@@ -334,11 +334,11 @@ def _appliance_info_finder(self, appliance: etree, appl: Munch) -> Munch:
334334
335335 # Collect thermostat device info
336336 if appl .pwclass in THERMOSTAT_CLASSES :
337- return self ._appl_thermostat_info (appliance , self . _domain_objects , appl )
337+ return self ._appl_thermostat_info (appl , appliance )
338338
339339 # Collect extra heater_central device info
340340 if appl .pwclass == "heater_central" :
341- appl = self ._appl_heater_central_info (self . _domain_objects , appliance , self . _domain_objects , appl )
341+ appl = self ._appl_heater_central_info (appl , appliance )
342342 # Anna + Loria: collect dhw control operation modes
343343 dhw_mode_list : list [str ] = []
344344 locator = "./actuator_functionalities/domestic_hot_water_mode_control_functionality"
@@ -420,7 +420,7 @@ def _all_appliances(self) -> None:
420420
421421 # Determine class for this appliance
422422 # Skip on heater_central when no active device present
423- if not (appl := self ._appliance_info_finder (appliance , appl )):
423+ if not (appl := self ._appliance_info_finder (appl , appliance )):
424424 continue
425425
426426 # Skip orphaned heater_central (Core Issue #104433)
@@ -634,12 +634,12 @@ def _wireless_availability(self, appliance: etree, data: DeviceData) -> None:
634634 # Collect for Plugs
635635 locator = "./logs/interval_log/electricity_interval_meter"
636636 mod_type = "electricity_interval_meter"
637- module_data = self ._get_module_data (appliance , self . _domain_objects , locator , mod_type )
637+ module_data = self ._get_module_data (appliance , locator , mod_type )
638638 if module_data ["reachable" ] is None :
639639 # Collect for wireless thermostats
640640 locator = "./logs/point_log[type='thermostat']/thermostat"
641641 mod_type = "thermostat"
642- module_data = self ._get_module_data (appliance , self . _domain_objects , locator , mod_type )
642+ module_data = self ._get_module_data (appliance , locator , mod_type )
643643
644644 if module_data ["reachable" ] is not None :
645645 data ["available" ] = module_data ["reachable" ]
0 commit comments