fix: migrate to ha-spinner (#1234)

Remove the old spinner and use the new one. The old spinner was discontinued in HA 2025.5.

The loading indicator will not be shown, if your are using a version of HA < 2025.5!
This commit is contained in:
ildar170975
2025-05-29 22:02:35 +03:00
committed by GitHub
parent ea103991f3
commit d68f651af0
2 changed files with 3 additions and 5 deletions

View File

@@ -343,9 +343,7 @@ class MiniGraphCard extends LitElement {
</div>
</div>
${this.renderLegend()}
` : html`
<ha-circular-progress indeterminate></ha-circular-progress>
`}
` : html`<ha-spinner aria-label="Loading" size="small"></ha-spinner>`}
</div>` : '';
}

View File

@@ -62,8 +62,8 @@ const style = css`
ha-card[hover] {
cursor: pointer;
}
ha-circular-progress {
margin: auto;
ha-spinner {
margin: 4px auto;
}
.flex {
display: flex;