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:
|
async def async_remove_backup(self, *, slug: str, **kwargs: Any) -> None:
|
||||||
"""Remove a backup."""
|
"""Remove a backup."""
|
||||||
for agent in self.backup_agents.values():
|
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(
|
async def async_receive_backup(
|
||||||
self,
|
self,
|
||||||
|
Reference in New Issue
Block a user