mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Avoid Shelly data update during shutdown (#130301)
This commit is contained in:
parent
980b0fa5e6
commit
73929e6791
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user