Skip to content

Commit 69eafeb

Browse files
committed
Avoid double model/model_id's for Anna
1 parent 0594a03 commit 69eafeb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugwise/common.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ def _appl_thermostat_info(self, appl: Munch, xml_1: etree, xml_2: etree = None)
101101
xml_2 = return_valid(xml_2, self._domain_objects)
102102
module_data = self._get_module_data(xml_1, locator, mod_type, xml_2)
103103
appl.vendor_name = module_data["vendor_name"]
104-
appl.model_id = module_data["vendor_model"]
105-
appl.model = check_model(appl.model_id, appl.vendor_name)
104+
if (model := module_data["vendor_model"]) == "ThermoTouch":
105+
appl.model = model
106+
else:
107+
appl.model_id = model
108+
appl.model = check_model(model, appl.vendor_name)
106109
appl.hardware = module_data["hardware_version"]
107110
appl.firmware = module_data["firmware_version"]
108111
appl.zigbee_mac = module_data["zigbee_mac_address"]

0 commit comments

Comments
 (0)