Skip to content

Commit

Permalink
Additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Roeland authored and Roeland committed Sep 13, 2024
1 parent 150d49a commit 15925b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/entsoe/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ async def async_update(self) -> None:
"prices_tomorrow": self.coordinator.get_prices_tomorrow(),
"prices": self.coordinator.get_prices(),
}
_LOGGER.debug(
f"attributes updated: {self._attr_extra_state_attributes}"
)
except Exception as exc:
_LOGGER.warning(
f"Unable to update attributes of the average entity, error: {exc}, data: {self.coordinator.data}"
Expand Down

0 comments on commit 15925b2

Please sign in to comment.