Skip to content

Commit

Permalink
Merge pull request #42 from MislavMandaric/fix/poll-debugging
Browse files Browse the repository at this point in the history
Debug for climate state update
  • Loading branch information
MislavMandaric authored Dec 29, 2021
2 parents df94652 + 29a4e4a commit 91db650
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions custom_components/vaillant_vsmart/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,11 @@ async def async_set_temperature(self, **kwargs) -> None:
_LOGGER.exception(ex)

await self.coordinator.async_request_refresh()

def async_write_ha_state(self) -> None:
"""Add logging to the write state climate entity method."""

_LOGGER.debug(
f"Writing climate state to HA, current temperature: {self._module.measured.temperature}"
)
super().async_write_ha_state()

0 comments on commit 91db650

Please sign in to comment.