Avoid Shelly data update during shutdown (#130301)

This commit is contained in:
Simone Chemelli 2024-11-10 20:11:42 +01:00 committed by GitHub
parent 980b0fa5e6
commit 73929e6791
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -603,7 +603,7 @@ class ShellyRpcCoordinator(ShellyCoordinatorBase[RpcDevice]):
async def _async_update_data(self) -> None:
"""Fetch data."""
if self.update_sleep_period():
if self.update_sleep_period() or self.hass.is_stopping:
return
if self.sleep_period: