Skip to content

Commit

Permalink
Merge branch 'main' into wilbie-cards-#1
Browse files Browse the repository at this point in the history
  • Loading branch information
wilbiev authored Dec 28, 2024
2 parents ec5d841 + 359b85c commit daf7bcc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ card_vertical_button:
return "script.toggle";
if( entity.entity_id.startsWith("button.") )
return "button.press";
if( entity.entity_id.startsWith("lock.") )
if(entity.state == "locked")
return "lock.unlock";
else
return "lock.lock";
// If we need to support other entities we can add these options here.
return "";
]]]
Expand Down

0 comments on commit daf7bcc

Please sign in to comment.