We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 632a054 commit 4269a3aCopy full SHA for 4269a3a
plugwise/legacy/data.py
@@ -6,7 +6,7 @@
6
7
# Dict as class
8
# Version detection
9
-from plugwise.constants import NONE, ZONE_THERMOSTATS, DeviceData
+from plugwise.constants import NONE, DeviceData
10
from plugwise.legacy.helper import SmileLegacyHelper
11
from plugwise.util import remove_empty_platform_dicts
12
@@ -57,8 +57,8 @@ def _get_device_data(self, dev_id: str) -> DeviceData:
57
# Switching groups data
58
self._device_data_switching_group(device, data)
59
60
- # Skip obtaining data for non primary-thermostats
61
- if device["dev_class"] not in ZONE_THERMOSTATS:
+ # Skip obtaining data when not a thermostat
+ if device["dev_class"] != "thermostat":
62
return data
63
64
# Thermostat data (presets, temperatures etc)
0 commit comments