mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 00:55:26 +02:00
Add temporary check for BackupAgent.async_remove_backup (#130893)
This commit is contained in:
@@ -356,7 +356,9 @@ class BackupManager(BaseBackupManager[Backup]):
|
||||
async def async_remove_backup(self, *, slug: str, **kwargs: Any) -> None:
|
||||
"""Remove a backup."""
|
||||
for agent in self.backup_agents.values():
|
||||
await agent.async_remove_backup(slug=slug) # type: ignore[attr-defined]
|
||||
if not hasattr(agent, "async_remove_backup"):
|
||||
continue
|
||||
await agent.async_remove_backup(slug=slug)
|
||||
|
||||
async def async_receive_backup(
|
||||
self,
|
||||
|
Reference in New Issue
Block a user