Skip to content

Commit 4269a3a

Browse files
committed
Improve code
1 parent 632a054 commit 4269a3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise/legacy/data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Dict as class
88
# Version detection
9-
from plugwise.constants import NONE, ZONE_THERMOSTATS, DeviceData
9+
from plugwise.constants import NONE, DeviceData
1010
from plugwise.legacy.helper import SmileLegacyHelper
1111
from plugwise.util import remove_empty_platform_dicts
1212

@@ -57,8 +57,8 @@ def _get_device_data(self, dev_id: str) -> DeviceData:
5757
# Switching groups data
5858
self._device_data_switching_group(device, data)
5959

60-
# Skip obtaining data for non primary-thermostats
61-
if device["dev_class"] not in ZONE_THERMOSTATS:
60+
# Skip obtaining data when not a thermostat
61+
if device["dev_class"] != "thermostat":
6262
return data
6363

6464
# Thermostat data (presets, temperatures etc)

0 commit comments

Comments
 (0)