Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions tests/components/automation/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,26 @@ async def test_blueprint_automation(hass, calls):
]


async def test_blueprint_automation_bad_config(hass, caplog):
"""Test blueprint automation with bad inputs."""
assert await async_setup_component(
hass,
"automation",
{
"automation": {
"use_blueprint": {
"path": "test_event_service.yaml",
"input": {
"trigger_event": "blueprint_event",
"service_to_call": {"dict": "not allowed"},
},
}
}
},
)
assert "generated invalid automation" in caplog.text


async def test_trigger_service(hass, calls):
"""Test the automation trigger service."""
assert await async_setup_component(
Expand Down