From b063840f462b1b995c2f4868ac80907bd6af8f5a Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Tue, 15 Oct 2024 06:09:07 -0700 Subject: [PATCH] Update devtools/statistics for renamed issue type (#22371) --- .../statistics/developer-tools-statistics.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panels/developer-tools/statistics/developer-tools-statistics.ts b/src/panels/developer-tools/statistics/developer-tools-statistics.ts index 1b9debf9b0e4..1eff8e2446c5 100644 --- a/src/panels/developer-tools/statistics/developer-tools-statistics.ts +++ b/src/panels/developer-tools/statistics/developer-tools-statistics.ts @@ -49,7 +49,7 @@ import { showConfirmationDialog } from "../../lovelace/custom-card-helpers"; import { fixStatisticsIssue } from "./fix-statistics"; import { showStatisticsAdjustSumDialog } from "./show-dialog-statistics-adjust-sum"; -const FIX_ISSUES_ORDER = { +const FIX_ISSUES_ORDER: Record = { no_state: 0, entity_no_longer_recorded: 1, entity_not_recorded: 1, @@ -57,10 +57,10 @@ const FIX_ISSUES_ORDER = { units_changed: 3, }; -const FIXABLE_ISSUES = [ +const FIXABLE_ISSUES: StatisticsValidationResult["type"][] = [ "no_state", "entity_no_longer_recorded", - "unsupported_state_class", + "state_class_removed", "units_changed", ];