Skip to content

Commit

Permalink
fix: Call async_update_listeners if there are changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sopelj committed Nov 4, 2024
1 parent 3a56850 commit 693fc7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/ember_mug/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ async def _async_update_data(self) -> MugData:
"Full" if full_update else "Partial",
changed,
)
if changed:
self.async_update_listeners()
return self.mug.data

def ensure_writable(self) -> None:
Expand Down

0 comments on commit 693fc7c

Please sign in to comment.