Skip to content

Commit 826f8ce

Browse files
committed
Same bugfix as in master
1 parent 48c9c7a commit 826f8ce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

custom_components/plugwise-beta/climate.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ def hvac_action(self):
134134
return CURRENT_HVAC_COOL
135135
return CURRENT_HVAC_IDLE
136136
else:
137-
if (self._central_heating_state is not None or self._boiler_state is not None):
137+
if (
138+
self._central_heating_state is not None
139+
or self._boiler_state is not None
140+
):
138141
if self._thermostat > self._temperature:
139142
return CURRENT_HVAC_HEAT
140143
return CURRENT_HVAC_IDLE
@@ -280,7 +283,7 @@ def update(self):
280283
"""Update the data for this climate device."""
281284
_LOGGER.info("Updating climate...")
282285
climate_data = self._api.get_device_data(self._dev_id)
283-
heater_central_data = self._api.get_device_data(self._api.gateway_id)
286+
heater_central_data = self._api.get_device_data(self._api.heater_id)
284287

285288
if climate_data is None:
286289
_LOGGER.error("Received no climate_data for device %s.", self._name)

0 commit comments

Comments
 (0)