1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Add additional error handling for automation script run (#45613)

This commit is contained in:
Marc Mueller
2021-01-28 09:26:41 +01:00
committed by GitHub
parent 5711d61b38
commit 7673f57248
3 changed files with 10 additions and 0 deletions

View File

@@ -947,6 +947,7 @@ async def test_automation_with_error_in_script(hass, caplog):
hass.bus.async_fire("test_event")
await hass.async_block_till_done()
assert "Service not found" in caplog.text
assert "Traceback" not in caplog.text
async def test_automation_with_error_in_script_2(hass, caplog):