From 6ea2a29eea1cb9ad2d70f3ec2dc003cb5eedf69c Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 27 May 2021 11:48:27 +0200 Subject: [PATCH] Hide attribute measurement and editable attributes (#9272) --- src/util/hass-attributes-util.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util/hass-attributes-util.ts b/src/util/hass-attributes-util.ts index 0e991b0fa5..7a9bc9c232 100644 --- a/src/util/hass-attributes-util.ts +++ b/src/util/hass-attributes-util.ts @@ -101,6 +101,7 @@ hassAttributeUtil.LOGIC_STATE_ATTRIBUTES = { supported_features: undefined, attribution: undefined, restored: undefined, + editable: undefined, custom_ui_more_info: { type: "string" }, custom_ui_state_card: { type: "string" }, device_class: { @@ -109,6 +110,13 @@ hassAttributeUtil.LOGIC_STATE_ATTRIBUTES = { description: "Device class", domains: ["binary_sensor", "cover", "humidifier", "sensor", "switch"], }, + state_class: { + type: "array", + options: { sensor: ["measurement"] }, + description: "State class", + domains: ["sensor"], + }, + last_reset: undefined, assumed_state: { type: "boolean", domains: [