mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Fix calling empty script turn off (#24827)
This commit is contained in:
@@ -322,3 +322,13 @@ async def test_logging_script_error(hass, caplog):
|
||||
assert err.value.domain == 'non'
|
||||
assert err.value.service == 'existing'
|
||||
assert 'Error executing script' in caplog.text
|
||||
|
||||
|
||||
async def test_turning_no_scripts_off(hass):
|
||||
"""Test it is possible to turn two scripts off."""
|
||||
assert await async_setup_component(hass, 'script', {})
|
||||
|
||||
# Testing it doesn't raise
|
||||
await hass.services.async_call(
|
||||
DOMAIN, SERVICE_TURN_OFF, {'entity_id': []}, blocking=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user