Custom Door controls (#6195)

This commit is contained in:
Vladimír Záhradník 2020-07-02 23:18:40 +02:00 committed by GitHub
parent 6c73392a57
commit 351962475f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ class HaCoverControls extends PolymerElement {
computeOpenIcon(stateObj) {
switch (stateObj.attributes.device_class) {
case "awning":
case "door":
case "gate":
return "hass:arrow-expand-horizontal";
default:
@ -75,6 +76,7 @@ class HaCoverControls extends PolymerElement {
computeCloseIcon(stateObj) {
switch (stateObj.attributes.device_class) {
case "awning":
case "door":
case "gate":
return "hass:arrow-collapse-horizontal";
default: