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:
nagyrobi 2020-04-21 17:23:37 +02:00 committed by GitHub
parent d27a17cf8e
commit 8786302190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {