Fix lingering timer in shelly (#92466)

This commit is contained in:
epenet 2023-05-04 10:34:15 +02:00 committed by GitHub
parent ef9bcd9285
commit 1cca6f7c9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ class ShellyCoordinatorBase(DataUpdateCoordinator[None], Generic[_DeviceT]):
immediate=False,
function=self._async_reload_entry,
)
entry.async_on_unload(self._debounced_reload.async_cancel)
entry.async_on_unload(self._debounced_reload.async_shutdown)
@property
def model(self) -> str: