Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
92655fd6
"README.rst" did not exist on "904bf4493e08f60fc6c0dc7b741f3a97b07843f7"
Unverified
Commit
92655fd6
authored
2 months ago
by
Erik Montnemery
Committed by
GitHub
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Log cloud backup agent file list (#134556)
parent
e43f72c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
homeassistant/components/cloud/backup.py
+3
-0
3 additions, 0 deletions
homeassistant/components/cloud/backup.py
with
3 additions
and
0 deletions
homeassistant/components/cloud/backup.py
+
3
−
0
View file @
92655fd6
...
...
@@ -5,6 +5,7 @@ from __future__ import annotations
import
base64
from
collections.abc
import
AsyncIterator
,
Callable
,
Coroutine
,
Mapping
import
hashlib
import
logging
from
typing
import
Any
,
Self
from
aiohttp
import
ClientError
,
ClientTimeout
,
StreamReader
...
...
@@ -23,6 +24,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
from
.client
import
CloudClient
from
.const
import
DATA_CLOUD
,
DOMAIN
,
EVENT_CLOUD_EVENT
_LOGGER
=
logging
.
getLogger
(
__name__
)
_STORAGE_BACKUP
=
"
backup
"
...
...
@@ -208,6 +210,7 @@ class CloudBackupAgent(BackupAgent):
"""
List backups.
"""
try
:
backups
=
await
async_files_list
(
self
.
_cloud
,
storage_type
=
_STORAGE_BACKUP
)
_LOGGER
.
debug
(
"
Cloud backups: %s
"
,
backups
)
except
(
ClientError
,
CloudError
)
as
err
:
raise
BackupAgentError
(
"
Failed to list backups
"
)
from
err
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment