mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +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:
|
async def _async_update_data(self) -> None:
|
||||||
"""Fetch data."""
|
"""Fetch data."""
|
||||||
if self.update_sleep_period():
|
if self.update_sleep_period() or self.hass.is_stopping:
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.sleep_period:
|
if self.sleep_period:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user