-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 support for add-on update type for backups in the UI #24044
Conversation
Backend is approved. |
91831a4
to
80814b1
Compare
@@ -340,7 +340,7 @@ export const computeBackupType = ( | |||
if (backup.with_automatic_settings) { | |||
return "automatic"; | |||
} | |||
if (isHassio && backup.extra_metadata?.["supervisor.addon_update"]) { | |||
if (isHassio && backup.extra_metadata?.["supervisor.addon_update"] != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather just check if the key is there honestly, or check it if truthy like before, but it is ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but it would work if "supervisor.addon_update": null
for some reason.
Backend PR is merged. |
* Add support for add-on update type for backups in the UI * Add type to backup detail page * Use new model * Fix detail page * Fix type
Proposed change
Display add-on update backup type for Hassio installs.
Core PR : home-assistant/core#137296
NEEDS: home-assistant/core#137296
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: