Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mounts API #32

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Add mounts API #32

merged 1 commit into from
Nov 26, 2024

Conversation

mdegat01
Copy link
Collaborator

Proposed Changes

Add mounts API to client library

@mdegat01 mdegat01 added the new-feature New features or options. label Nov 25, 2024

name: str
read_only: bool
state: MountState | None
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to reviewers: the user_path field added in home-assistant/supervisor#5438 was specifically excluded from here. The implementation plan for cloud backup is still under debate and so this field may be removed before next Supervisor beta. I'll add the field in a follow-up if it remains.



@dataclass(frozen=True)
class MountRequest(ABC): # noqa: B024
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to disable the ruff rule here but not in the other ABC classes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe its because the only field it has is optional. As long as there is at least one required field that doesn't show up.

@mdegat01 mdegat01 merged commit 4263b5e into main Nov 26, 2024
8 checks passed
@mdegat01 mdegat01 deleted the add-mounts-api branch November 26, 2024 20:44
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 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.

2 participants