Hide attribute measurement and editable attributes (#9272)

This commit is contained in:
Bram Kragten 2021-05-27 11:48:27 +02:00 committed by GitHub
parent 59f3f819a6
commit 6ea2a29eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: [