mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 13:57:21 +00:00
Offer to remove statistics for entities with unsupported state class (#13325)
This commit is contained in:
parent
0ab823bcf5
commit
dac1d76bd2
@ -281,7 +281,7 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
|
||||
});
|
||||
break;
|
||||
case "unsupported_state_class":
|
||||
showAlertDialog(this, {
|
||||
showConfirmationDialog(this, {
|
||||
title: "Unsupported state class",
|
||||
text: html`The state class of this entity, ${issue.data.state_class}
|
||||
is not supported. <br />Statistics can not be generated until this
|
||||
@ -296,7 +296,15 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
developer documentation</a
|
||||
>.`,
|
||||
>. If the state class has permanently changed, you may want to
|
||||
remove the long term statistics of it from your database.<br /><br />Do
|
||||
you want to permanently remove the long term statistics of
|
||||
${issue.data.statistic_id} from your database?`,
|
||||
confirmText: this.hass.localize("ui.common.remove"),
|
||||
confirm: async () => {
|
||||
await clearStatistics(this.hass, [issue.data.statistic_id]);
|
||||
this._validateStatistics();
|
||||
},
|
||||
});
|
||||
break;
|
||||
case "unsupported_unit_metadata":
|
||||
|
Loading…
x
Reference in New Issue
Block a user