mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 09:05:15 +02:00
Adjust code related to WS command backup/info (#130890)
This commit is contained in:
@@ -18,7 +18,7 @@ class BackupAgentError(HomeAssistantError):
|
|||||||
|
|
||||||
|
|
||||||
class BackupAgentUnreachableError(BackupAgentError):
|
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."
|
_message = "The backup agent is unreachable."
|
||||||
|
|
||||||
|
@@ -288,7 +288,7 @@ class BackupManager(BaseBackupManager[Backup]):
|
|||||||
"""Return backups."""
|
"""Return backups."""
|
||||||
backups: dict[str, Backup] = {}
|
backups: dict[str, Backup] = {}
|
||||||
agent_errors: dict[str, Exception] = {}
|
agent_errors: dict[str, Exception] = {}
|
||||||
agent_ids = list(self.backup_agents.keys())
|
agent_ids = list(self.backup_agents)
|
||||||
|
|
||||||
list_backups_results = await asyncio.gather(
|
list_backups_results = await asyncio.gather(
|
||||||
*(agent.async_list_backups() for agent in self.backup_agents.values()),
|
*(agent.async_list_backups() for agent in self.backup_agents.values()),
|
||||||
|
Reference in New Issue
Block a user