diff --git a/homeassistant/components/cloud/backup.py b/homeassistant/components/cloud/backup.py index d394daa7dc5..e826c229321 100644 --- a/homeassistant/components/cloud/backup.py +++ b/homeassistant/components/cloud/backup.py @@ -167,7 +167,7 @@ class CloudBackupAgent(BackupAgent): :param backup_id: The ID of the backup that was returned in async_list_backups. """ if not await self.async_get_backup(backup_id): - raise BackupAgentError("Backup not found") + return try: await async_files_delete_file( diff --git a/tests/components/cloud/test_backup.py b/tests/components/cloud/test_backup.py index ac0ef1826de..5e607bbc70b 100644 --- a/tests/components/cloud/test_backup.py +++ b/tests/components/cloud/test_backup.py @@ -570,4 +570,4 @@ async def test_agents_delete_not_found( response = await client.receive_json() assert response["success"] - assert response["result"] == {"agent_errors": {"cloud.cloud": "Backup not found"}} + assert response["result"] == {"agent_errors": {}}