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>
</div> </div>
${this.renderLegend()} ${this.renderLegend()}
` : html` ` : html`<ha-spinner aria-label="Loading" size="small"></ha-spinner>`}
<ha-circular-progress indeterminate></ha-circular-progress>
`}
</div>` : ''; </div>` : '';
} }

View File

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