Skip to content

Commit

Permalink
Call _handle_coordinator_update when SwitchBot Cloud entity is added …
Browse files Browse the repository at this point in the history
…to hass
  • Loading branch information
mckbrmn committed Jan 14, 2025
1 parent 68ff165 commit f54d929
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/switchbot_cloud/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ async def send_api_command(
command_type,
parameters,
)

async def async_added_to_hass(self) -> None:
"""Run when entity is about to be added to hass."""
await super().async_added_to_hass()
self._handle_coordinator_update()

0 comments on commit f54d929

Please sign in to comment.