mirror of
https://github.com/home-assistant/core.git
synced 2026-10-06 22:38:02 -04:00
Cancel nest media cleanup timer when unloading entry (#183274)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -153,10 +153,12 @@ class NestEventMediaStore(EventMediaStore):
|
||||
self._data: dict[str, Any] | None = None
|
||||
self._devices: Mapping[str, str] | None = {}
|
||||
# Invoke garbage collection for orphaned files one per
|
||||
async_track_time_interval(
|
||||
hass,
|
||||
self.async_remove_orphaned_media,
|
||||
datetime.timedelta(days=1),
|
||||
config_entry.async_on_unload(
|
||||
async_track_time_interval(
|
||||
hass,
|
||||
self.async_remove_orphaned_media,
|
||||
datetime.timedelta(days=1),
|
||||
)
|
||||
)
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user