Skip to content

Commit df8513d

Browse files
committed
Skip _scan_thermostats() for non-thermostat smile-types
1 parent c36b5bf commit df8513d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise/helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,9 @@ def _scan_thermostats(self) -> None:
890890
"""Helper-function for smile.py: get_all_devices().
891891
Update locations with thermostat ranking results.
892892
"""
893+
if self.smile_type != "thermostat":
894+
pass
895+
893896
self._thermo_locs = self._match_locations()
894897

895898
thermo_matching: dict[str, int] = {

0 commit comments

Comments
 (0)