Revert breaking change for Automation (#37885)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
pull/37889/head
Pascal Vizeli 2020-07-15 20:38:29 +02:00 committed by GitHub
parent abe3e3094e
commit f4c3f5d074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ from homeassistant.helpers.script import (
ATTR_MAX,
ATTR_MODE,
CONF_MAX,
SCRIPT_MODE_PARALLEL,
SCRIPT_MODE_SINGLE,
Script,
make_script_schema,
)
@ -118,7 +118,7 @@ PLATFORM_SCHEMA = vol.All(
vol.Optional(CONF_CONDITION): _CONDITION_SCHEMA,
vol.Required(CONF_ACTION): cv.SCRIPT_SCHEMA,
},
SCRIPT_MODE_PARALLEL,
SCRIPT_MODE_SINGLE,
),
)

View File

@ -853,7 +853,7 @@ async def test_if_not_fires_on_entities_change_with_for_after_stop(hass, calls):
await hass.async_block_till_done()
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=10))
await hass.async_block_till_done()
assert len(calls) == 2
assert len(calls) == 1
hass.states.async_set("test.entity_1", 15)
hass.states.async_set("test.entity_2", 15)
@ -866,7 +866,7 @@ async def test_if_not_fires_on_entities_change_with_for_after_stop(hass, calls):
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=10))
await hass.async_block_till_done()
assert len(calls) == 2
assert len(calls) == 1
async def test_if_fires_on_entity_change_with_for_attribute_change(hass, calls):

View File

@ -404,7 +404,7 @@ async def test_if_not_fires_on_entities_change_with_for_after_stop(hass, calls):
await hass.async_block_till_done()
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=10))
await hass.async_block_till_done()
assert len(calls) == 2
assert len(calls) == 1
hass.states.async_set("test.entity_1", "world_no")
hass.states.async_set("test.entity_2", "world_no")
@ -417,7 +417,7 @@ async def test_if_not_fires_on_entities_change_with_for_after_stop(hass, calls):
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=10))
await hass.async_block_till_done()
assert len(calls) == 2
assert len(calls) == 1
async def test_if_fires_on_entity_change_with_for_attribute_change(hass, calls):