mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Add device_class for switches (#3096)
This commit is contained in:
parent
a70d9195db
commit
bdd8699709
@ -46,6 +46,7 @@ hassAttributeUtil.DOMAIN_DEVICE_CLASS = {
|
||||
"power",
|
||||
"signal_strength",
|
||||
],
|
||||
switch: ["switch", "outlet"],
|
||||
};
|
||||
|
||||
hassAttributeUtil.UNKNOWN_TYPE = "json";
|
||||
@ -88,7 +89,7 @@ hassAttributeUtil.LOGIC_STATE_ATTRIBUTES = hassAttributeUtil.LOGIC_STATE_ATTRIBU
|
||||
type: "array",
|
||||
options: hassAttributeUtil.DOMAIN_DEVICE_CLASS,
|
||||
description: "Device class",
|
||||
domains: ["binary_sensor", "cover", "sensor"],
|
||||
domains: ["binary_sensor", "cover", "sensor", "switch"],
|
||||
},
|
||||
hidden: { type: "boolean", description: "Hide from UI" },
|
||||
assumed_state: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user