Fix setup failure tests failing for the wrong reason (#70144)

This commit is contained in:
Thomas Lovén 2022-04-16 11:59:38 +02:00 committed by GitHub
parent 6a362956dd
commit 7cc799becf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1000,7 +1000,7 @@ async def test_if_fails_setup_for_without_time(hass, calls):
automation.DOMAIN: {
"trigger": {"platform": "event", "event_type": "bla"},
"condition": {
"platform": "state",
"condition": "state",
"entity_id": "test.entity",
"state": "on",
"for": {},
@ -1019,9 +1019,9 @@ async def test_if_fails_setup_for_without_entity(hass, calls):
automation.DOMAIN,
{
automation.DOMAIN: {
"trigger": {"event_type": "bla"},
"trigger": {"platform": "event", "event_type": "bla"},
"condition": {
"platform": "state",
"condition": "state",
"state": "on",
"for": {"seconds": 5},
},