Add trigger action to automation class
This commit is contained in:
parent
3f06c92abb
commit
9cf9bc11d3
@ -213,6 +213,9 @@ def showEntities(query):
|
||||
open_or_close = "open" if state != "open" else "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"]))
|
||||
|
||||
results.append(item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user