mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 10:46:35 +00:00
Handle optional state enum from sensor entities (#14428)
This commit is contained in:
parent
07ad429f8c
commit
f0127511b0
@ -261,6 +261,11 @@ export const getStates = (
|
|||||||
result.push(...state.attributes.activity_list);
|
result.push(...state.attributes.activity_list);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "sensor":
|
||||||
|
if (!attribute && state.attributes.device_class === "enum") {
|
||||||
|
result.push(...state.attributes.options);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "vacuum":
|
case "vacuum":
|
||||||
if (attribute === "fan_speed") {
|
if (attribute === "fan_speed") {
|
||||||
result.push(...state.attributes.fan_speed_list);
|
result.push(...state.attributes.fan_speed_list);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user