From 2fb3ac74ebfb413df6387340be19f96f011ef4f5 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 6 Oct 2021 09:57:03 +0200 Subject: [PATCH] Add total and total increasing state class --- src/util/hass-attributes-util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/hass-attributes-util.ts b/src/util/hass-attributes-util.ts index feaf4c28fb..0d08b6ed87 100644 --- a/src/util/hass-attributes-util.ts +++ b/src/util/hass-attributes-util.ts @@ -124,7 +124,7 @@ hassAttributeUtil.LOGIC_STATE_ATTRIBUTES = { }, state_class: { type: "array", - options: { sensor: ["measurement"] }, + options: { sensor: ["measurement", "total", "total_increasing"] }, description: "State class", domains: ["sensor"], },