Skip to content

Conversation

@mdegat01
Copy link
Collaborator

Proposed Changes

Add support for specifying location in remove and download backup APIs as per home-assistant/supervisor#5482

In addition, fixes two issues with the FullBackupOptions and PartialBackupOptions models identified as part of this:

  1. None was a valid option for location that did not get passed on to Supervisor. Now accepted.
  2. location cannot be a set. Order matters as the first one in the list becomes the primary location of the backup. This is now unfortunately a breaking change to the beta from Cloud backup support #33

@mdegat01 mdegat01 added the new-feature New features or options. label Dec 12, 2024
password: str | None = None
compressed: bool | None = None
location: set[str | None] | str | None = None
location: list[str | None] | str | None = DEFAULT # type: ignore[assignment]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, I guess this is a breaking change, but we only introduced set[] support with #33 which isn't in a stable release, so changing that is fine.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I noted that in the description

@mdegat01 mdegat01 merged commit 54b2374 into main Dec 16, 2024
7 of 8 checks passed
@mdegat01 mdegat01 deleted the add-remove-download-location branch December 16, 2024 14:59
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

new-feature New features or options.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants