@@ -116,6 +116,7 @@ def _appl_heater_central_info(
116116 appl .model = (
117117 "Generic heater/cooler" if self ._cooling_present else "Generic heater"
118118 )
119+ appl .module_id = module_data ["module_id" ]
119120
120121 return appl
121122
@@ -140,6 +141,7 @@ def _appl_thermostat_info(
140141 appl .available = module_data ["reachable" ]
141142 appl .hardware = module_data ["hardware_version" ]
142143 appl .firmware = module_data ["firmware_version" ]
144+ appl .module_id = module_data ["module_id" ]
143145 appl .zigbee_mac = module_data ["zigbee_mac_address" ]
144146
145147 return appl
@@ -156,6 +158,7 @@ def _create_gw_entities(self, appl: Munch) -> None:
156158 "mac_address" : appl .mac ,
157159 "model" : appl .model ,
158160 "model_id" : appl .model_id ,
161+ "module_id" : appl .module_id ,
159162 "name" : appl .name ,
160163 "vendor" : appl .vendor_name ,
161164 "zigbee_mac_address" : appl .zigbee_mac ,
@@ -255,6 +258,7 @@ def _get_module_data(
255258 "contents" : False ,
256259 "firmware_version" : None ,
257260 "hardware_version" : None ,
261+ "module_id" : None ,
258262 "reachable" : None ,
259263 "vendor_name" : None ,
260264 "vendor_model" : None ,
@@ -278,6 +282,7 @@ def _get_module_data(
278282 module_data ["vendor_model" ] = module .find ("vendor_model" ).text
279283 module_data ["hardware_version" ] = module .find ("hardware_version" ).text
280284 module_data ["firmware_version" ] = module .find ("firmware_version" ).text
285+ module_data ["module_id" ] = module .attrib ["id" ]
281286 get_zigbee_data (module , module_data , legacy )
282287
283288 break
0 commit comments