@@ -53,7 +53,7 @@ def _appl_heater_central_info(
5353 return None
5454
5555 # Find the valid heater_central
56- # xml_1 = self._appliances for legacy, self._domain_objects for actual
56+ # xml_1: self._appliances for legacy, self._domain_objects for actual
5757 self ._heater_id = check_heater_central (xml_1 )
5858
5959 # Info for On-Off device
@@ -68,8 +68,8 @@ def _appl_heater_central_info(
6868 locator_1 = "./logs/point_log[type='flame_state']/boiler_state"
6969 locator_2 = "./services/boiler_state"
7070 mod_type = "boiler_state"
71- # xml_2 = appliance
72- # xml_3 = self._modules for legacy, self._domain_objects for actual
71+ # xml_2: appliance
72+ # xml_3: self._modules for legacy, self._domain_objects for actual
7373 module_data = self ._get_module_data (xml_2 , xml_3 , locator_1 , mod_type )
7474 if not module_data ["contents" ]:
7575 module_data = self ._get_module_data (xml_2 , xml_3 , locator_2 , mod_type )
@@ -101,14 +101,14 @@ def _get_module_data(
101101 "vendor_model" : None ,
102102 "zigbee_mac_address" : None ,
103103 }
104- # xml_1 = appliance
104+ # xml_1: appliance
105105 if (appl_search := xml_1 .find (locator )) is not None :
106106 link_id = appl_search .attrib ["id" ]
107107 loc = f".//services/{ mod_type } [@id='{ link_id } ']...."
108108 if legacy :
109109 loc = f".//{ mod_type } [@id='{ link_id } ']...."
110110 # Not possible to walrus for some reason...
111- # xml_2 = self._modules for legacy, self._domain_objects for actual
111+ # xml_2: self._modules for legacy, self._domain_objects for actual
112112 module = xml_2 .find (loc )
113113 if module is not None : # pylint: disable=consider-using-assignment-expr
114114 model_data ["contents" ] = True
0 commit comments