Trigger automation without skipping condition (#28484)

* Trigger automation without skipping condition

* [] instead of .get()

* Update __init__.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
SantobertandPaulus Schoutsen authored and Franck Nijhof committed 2020-01-08 10:36:11 +01:00
1 parent 84a1afc785
commit 3d7488d188
4 files changed
+33 -5

No files matched your search

+16
View File
@@ -225,6 +225,22 @@ async def test_trigger_service_ignoring_condition(hass, calls):
)
assert len(calls) == 1
await hass.services.async_call(
"automation",
"trigger",
{"entity_id": "automation.test", "skip_condition": True},
blocking=True,
)
assert len(calls) == 2
await hass.services.async_call(
"automation",
"trigger",
{"entity_id": "automation.test", "skip_condition": False},
blocking=True,
)
assert len(calls) == 2
async def test_two_conditions_with_and(hass, calls):
"""Test two and conditions."""