mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Add up/down movement icons to shutter (#5579)
Since window shutters are also moving up and down, add these icons for during movement.
This commit is contained in:
parent
d27a17cf8e
commit
8786302190
@ -32,7 +32,16 @@ export const coverIcon = (state: HassEntity): string => {
|
||||
case "damper":
|
||||
return open ? "hass:circle" : "hass:circle-slice-8";
|
||||
case "shutter":
|
||||
return open ? "hass:window-shutter-open" : "hass:window-shutter";
|
||||
switch (state.state) {
|
||||
case "opening":
|
||||
return "hass:arrow-up-box";
|
||||
case "closing":
|
||||
return "hass:arrow-down-box";
|
||||
case "closed":
|
||||
return "hass:window-shutter";
|
||||
default:
|
||||
return "hass:window-shutter-open";
|
||||
}
|
||||
case "blind":
|
||||
case "curtain":
|
||||
switch (state.state) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user