Compare commits
2 Commits
5703fff482
...
9cf9bc11d3
Author | SHA1 | Date | |
---|---|---|---|
9cf9bc11d3 | |||
3f06c92abb |
@ -211,7 +211,10 @@ def showEntities(query):
|
||||
|
||||
if entity_class == "cover":
|
||||
open_or_close = "open" if state != "open" else "close"
|
||||
item.addAction(FuncAction("%s Cover" % (open_or_close.capitalize()), lambda d=data: sendCommand(d, "homeassistant/cover/%s_cover") % (open_or_close)))
|
||||
item.addAction(FuncAction("%s Cover" % (open_or_close.capitalize()), lambda d=data: sendCommand(d, "cover/%s_cover") % (open_or_close)))
|
||||
|
||||
if entity_class == "automation":
|
||||
item.addAction(FuncAction("Trigger", lambda d=data: sendCommand(d, "automation/trigger")))
|
||||
|
||||
item.addAction(ClipAction("Copy ID", entity["entity_id"]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user