Skip to content

Commit 65aac9e

Browse files
committed
Try 4
1 parent 4170666 commit 65aac9e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

plugwise/smile.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,16 @@ def get_all_gateway_entities(self) -> None:
110110
Collect and add switching- and/or pump-group entities.
111111
Finally, collect the data and states for each entity.
112112
"""
113-
self._all_appliances()
114-
if self._is_thermostat:
115-
self.therms_with_offset_func = (
116-
self._get_appliances_with_offset_functionality()
117-
)
118-
if self.check_name(ADAM):
119-
self._scan_thermostats()
113+
if self._all_appliances():
114+
if self._is_thermostat:
115+
self.therms_with_offset_func = (
116+
self._get_appliances_with_offset_functionality()
117+
)
118+
if self.check_name(ADAM):
119+
self._scan_thermostats()
120120

121-
if group_data := self._get_groups():
122-
self.gw_entities.update(group_data)
121+
if group_data := self._get_groups():
122+
self.gw_entities.update(group_data)
123123

124124
self._all_entity_data()
125125

0 commit comments

Comments
 (0)