${this.stateObj.attributes.title}
- ${this._error - ? html`
-
-
- ${this.hass.formatEntityAttributeName(
- this.stateObj,
- "installed_version"
- )}
-
-
- ${this.stateObj.attributes.installed_version ??
- this.hass.localize("state.default.unavailable")}
-
-
-
- ${this.hass.formatEntityAttributeName(
- this.stateObj,
- "latest_version"
- )}
+
+ ${this.stateObj.attributes.in_progress
+ ? supportsFeature(this.stateObj, UpdateEntityFeature.PROGRESS) &&
+ this.stateObj.attributes.update_percentage !== null
+ ? html` `
+ : html` `
+ : nothing}
+ ${this._error} `
+ : nothing}
+
${supportsFeature(this.stateObj!, UpdateEntityFeature.RELEASE_NOTES) &&
!this._error
? this._releaseNotes === undefined
@@ -293,6 +295,11 @@ class MoreInfoUpdate extends LitElement {
ha-expansion-panel {
margin: 16px 0;
}
+
+ .summary {
+ margin-bottom: 16px;
+ }
+
.row {
margin: 0;
display: flex;
@@ -308,7 +315,9 @@ class MoreInfoUpdate extends LitElement {
);
position: sticky;
bottom: 0;
- margin: 0 -24px -24px -24px;
+ margin: 0 -24px 0 -24px;
+ margin-bottom: calc(-1 * max(env(safe-area-inset-bottom), 24px));
+ padding-bottom: env(safe-area-inset-bottom);
box-sizing: border-box;
display: flex;
flex-direction: column;
${this.stateObj.attributes.title}
+ ${this._error + ? html`
+
-
+ ${this.hass.formatEntityAttributeName(
+ this.stateObj,
+ "installed_version"
+ )}
+
+
+ ${this.stateObj.attributes.installed_version ??
+ this.hass.localize("state.default.unavailable")}
+
- ${this.stateObj.attributes.latest_version ??
- this.hass.localize("state.default.unavailable")}
+
- ${this.stateObj.attributes.release_url
- ? html``
- : nothing}
+ ${this.stateObj.attributes.release_url
+ ? html``
+ : nothing}
+
+
-
+ ${this.hass.formatEntityAttributeName(
+ this.stateObj,
+ "latest_version"
+ )}
+
+
+ ${this.stateObj.attributes.latest_version ??
+ this.hass.localize("state.default.unavailable")}
+