Adjust code related to WS command backup/info (#130890)

This commit is contained in:
Erik Montnemery
2024-11-18 19:58:41 +01:00
committed by GitHub
parent c5757b57c3
commit 3bc45fec61
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ class BackupAgentError(HomeAssistantError):
class BackupAgentUnreachableError(BackupAgentError):
"""Raised when the agent can't reach it's API."""
"""Raised when the agent can't reach its API."""
_message = "The backup agent is unreachable."

View File

@@ -288,7 +288,7 @@ class BackupManager(BaseBackupManager[Backup]):
"""Return backups."""
backups: dict[str, Backup] = {}
agent_errors: dict[str, Exception] = {}
agent_ids = list(self.backup_agents.keys())
agent_ids = list(self.backup_agents)
list_backups_results = await asyncio.gather(
*(agent.async_list_backups() for agent in self.backup_agents.values()),