File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
custom_components/plugwise-beta Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments