Skip to content

Commit

Permalink
call coordinator request refresh when changes happen
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoS11 committed Jul 8, 2022
1 parent 7d5bc4d commit 6e10f9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/schluter/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None:
await self._api.async_set_regulation_mode(
self._api.sessionid, serial_number, regulation_mode
)
self._attr_hvac_mode = hvac_mode
# self._attr_hvac_mode = hvac_mode
await self.coordinator.async_request_refresh()
except (
InvalidUserPasswordError,
Expand All @@ -193,7 +193,8 @@ async def async_set_temperature(self, **kwargs):
await self._api.async_set_temperature(
self._api.sessionid, serial_number, target_temp
)
self._attr_hvac_mode = HVACMode.HEAT
# self._attr_hvac_mode = HVACMode.HEAT
await self.coordinator.async_request_refresh()
except (
InvalidUserPasswordError,
InvalidSessionIdError,
Expand Down

0 comments on commit 6e10f9f

Please sign in to comment.