Skip to content

Commit 711b963

Browse files
committed
Improve
1 parent 796700f commit 711b963

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

plugwise/helper.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,10 +1077,9 @@ def _get_measurement_data(self, dev_id: str) -> DeviceData:
10771077
# Collect availability-status for wireless connected devices to Adam
10781078
self._wireless_availablity(appliance, data)
10791079

1080-
if dev_id == self.gateway_id:
1081-
if self.smile(ADAM):
1082-
self._get_regulation_mode(appliance, data)
1083-
self._get_gateway_mode(appliance, data)
1080+
if dev_id == self.gateway_id and self.smile(ADAM):
1081+
self._get_regulation_mode(appliance, data)
1082+
self._get_gateway_mode(appliance, data)
10841083

10851084
# Adam & Anna: the Smile outdoor_temperature is present in DOMAIN_OBJECTS and LOCATIONS - under Home
10861085
# The outdoor_temperature present in APPLIANCES is a local sensor connected to the active device

0 commit comments

Comments
 (0)