Compare commits
No commits in common. "9cf9bc11d31464efcf3446499a6e1adec35aa377" and "5703fff482d98000fa9d663ff30b56ab5134eedb" have entirely different histories.
9cf9bc11d3
...
5703fff482
@ -211,10 +211,7 @@ 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, "cover/%s_cover") % (open_or_close)))
|
||||
|
||||
if entity_class == "automation":
|
||||
item.addAction(FuncAction("Trigger", lambda d=data: sendCommand(d, "automation/trigger")))
|
||||
item.addAction(FuncAction("%s Cover" % (open_or_close.capitalize()), lambda d=data: sendCommand(d, "homeassistant/cover/%s_cover") % (open_or_close)))
|
||||
|
||||
item.addAction(ClipAction("Copy ID", entity["entity_id"]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user