mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 04:36:36 +00:00
Humidifier icon for off state (#7113)
This commit is contained in:
parent
b2e2dbe0c2
commit
dac6edea90
@ -22,7 +22,6 @@ const fixedIcons = {
|
||||
group: "hass:google-circles-communities",
|
||||
homeassistant: "hass:home-assistant",
|
||||
homekit: "hass:home-automation",
|
||||
humidifier: "hass:air-humidifier",
|
||||
image_processing: "hass:image-filter-frames",
|
||||
input_boolean: "hass:toggle-switch-outline",
|
||||
input_datetime: "hass:calendar-clock",
|
||||
@ -88,6 +87,11 @@ export const domainIcon = (domain: string, state?: string): string => {
|
||||
return "hass:window-open";
|
||||
}
|
||||
|
||||
case "humidifier":
|
||||
return state && state === "off"
|
||||
? "hass:air-humidifier-off"
|
||||
: "hass:air-humidifier";
|
||||
|
||||
case "lock":
|
||||
return state && state === "unlocked" ? "hass:lock-open" : "hass:lock";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user