We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 796700f commit 711b963Copy full SHA for 711b963
1 file changed
plugwise/helper.py
@@ -1077,10 +1077,9 @@ def _get_measurement_data(self, dev_id: str) -> DeviceData:
1077
# Collect availability-status for wireless connected devices to Adam
1078
self._wireless_availablity(appliance, data)
1079
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)
+ if dev_id == self.gateway_id and self.smile(ADAM):
+ self._get_regulation_mode(appliance, data)
+ self._get_gateway_mode(appliance, data)
1084
1085
# Adam & Anna: the Smile outdoor_temperature is present in DOMAIN_OBJECTS and LOCATIONS - under Home
1086
# The outdoor_temperature present in APPLIANCES is a local sensor connected to the active device
0 commit comments