Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
fix coordinator exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rlippmann committed Feb 1, 2024
1 parent 621a790 commit ab039b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/adtpulse/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,9 @@ async def _async_update_data(self) -> None:

if update_exception:
self.async_set_update_error(update_exception)
# async_set_update_error will only notify listeners on first error
if not self.last_update_success:
self.async_update_listeners()
else:
self.last_exception = None
self.async_set_updated_data(None)

0 comments on commit ab039b4

Please sign in to comment.