Skip to content

Commit b3aed15

Browse files
committed
Add solution for Core #81712, remove unneeded
1 parent bd32615 commit b3aed15

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plugwise/helper.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,10 +666,12 @@ def _all_appliances(self) -> None:
666666

667667
for appliance in self._appliances.findall("./appliance"):
668668
appl = Munch()
669-
670669
appl.pwclass = appliance.find("type").text
671-
# Nothing useful in opentherm so skip it
672-
if appl.pwclass == "open_therm_gateway":
670+
# Skip thermostats that have this key, should be an orphaned device (Core #81712)
671+
if (
672+
appl.pwclass == "thermostat"
673+
and appliance.find("actuator_functionalities/") is None
674+
):
673675
continue
674676

675677
appl.location = None
@@ -701,7 +703,7 @@ def _all_appliances(self) -> None:
701703
if appl.pwclass == "gateway" and self.smile_type == "power":
702704
appl.dev_id = appl.location
703705

704-
# Don't show orphaned non-legacy thermostat-types.
706+
# Don't show orphaned non-legacy thermostat-types or the OpenTherm Gateway.
705707
if (
706708
not self._smile_legacy
707709
and appl.pwclass in THERMOSTAT_CLASSES

0 commit comments

Comments
 (0)