Avoid Shelly data update during shutdown (#130301)

This commit is contained in:
Simone Chemelli 2024-11-10 20:11:42 +01:00 committed by Franck Nijhof
parent 282f92e5f3
commit afec354b84
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

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: