1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Automation device/entity extraction to include triggers + conditions (#31474)

* Add support for extracting triggers

* Add support for extracting triggers

* Fix test
This commit is contained in:
Paulus Schoutsen
2020-02-05 07:52:21 -08:00
committed by GitHub
parent 431a3a6b44
commit 67680bcfa8
3 changed files with 143 additions and 57 deletions

View File

@@ -163,7 +163,7 @@ async def test_search(hass):
"automation": [
{
"alias": "wled_entity",
"trigger": {"platform": "state", "entity_id": "sensor.trigger_1"},
"trigger": {"platform": "template", "value_template": "true"},
"action": [
{
"service": "test.script",
@@ -173,7 +173,7 @@ async def test_search(hass):
},
{
"alias": "wled_device",
"trigger": {"platform": "state", "entity_id": "sensor.trigger_1"},
"trigger": {"platform": "template", "value_template": "true"},
"action": [
{
"domain": "light",