mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
display target humidity on glance card
This commit is contained in:
parent
82957ff6ef
commit
a0ab4dffc9
@ -53,6 +53,10 @@ export const computeStateDisplay = (
|
||||
stateObj.attributes.minute
|
||||
);
|
||||
return formatDateTime(date, language);
|
||||
} else if (domain === "humidifier") {
|
||||
if (stateObj.state === "on" && stateObj.attributes.humidity) {
|
||||
return `${stateObj.attributes.humidity} %`;
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user