mirror of
https://github.com/home-assistant/core.git
synced 2025-11-06 01:19:29 +00:00
Adjust automation to plural triggers/conditions/actions keys (#123823)
* Adjust automation to plural triggers/conditions/actions keys * Fix some tests * Adjust websocket tests * Fix search tests * Convert blueprint and blueprint inputs to modern schema * Pass schema when creating Blueprint object * Update tests * Adjust websocket api --------- Co-authored-by: Joostlek <joostlek@outlook.com> Co-authored-by: Erik <erik@montnemery.com>
This commit is contained in:
@@ -28,6 +28,14 @@ async def _reload_blueprint_automations(
|
||||
@callback
|
||||
def async_get_blueprints(hass: HomeAssistant) -> blueprint.DomainBlueprints:
|
||||
"""Get automation blueprints."""
|
||||
# pylint: disable-next=import-outside-toplevel
|
||||
from .config import AUTOMATION_BLUEPRINT_SCHEMA
|
||||
|
||||
return blueprint.DomainBlueprints(
|
||||
hass, DOMAIN, LOGGER, _blueprint_in_use, _reload_blueprint_automations
|
||||
hass,
|
||||
DOMAIN,
|
||||
LOGGER,
|
||||
_blueprint_in_use,
|
||||
_reload_blueprint_automations,
|
||||
AUTOMATION_BLUEPRINT_SCHEMA,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user