mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +00:00
Custom Door controls (#6195)
This commit is contained in:
parent
6c73392a57
commit
351962475f
@ -65,6 +65,7 @@ class HaCoverControls extends PolymerElement {
|
|||||||
computeOpenIcon(stateObj) {
|
computeOpenIcon(stateObj) {
|
||||||
switch (stateObj.attributes.device_class) {
|
switch (stateObj.attributes.device_class) {
|
||||||
case "awning":
|
case "awning":
|
||||||
|
case "door":
|
||||||
case "gate":
|
case "gate":
|
||||||
return "hass:arrow-expand-horizontal";
|
return "hass:arrow-expand-horizontal";
|
||||||
default:
|
default:
|
||||||
@ -75,6 +76,7 @@ class HaCoverControls extends PolymerElement {
|
|||||||
computeCloseIcon(stateObj) {
|
computeCloseIcon(stateObj) {
|
||||||
switch (stateObj.attributes.device_class) {
|
switch (stateObj.attributes.device_class) {
|
||||||
case "awning":
|
case "awning":
|
||||||
|
case "door":
|
||||||
case "gate":
|
case "gate":
|
||||||
return "hass:arrow-collapse-horizontal";
|
return "hass:arrow-collapse-horizontal";
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user