1 """Helpers for automation integration."""
8 from .const
import DOMAIN, LOGGER
10 DATA_BLUEPRINTS =
"automation_blueprints"
14 """Return True if any automation references the blueprint."""
15 from .
import automations_with_blueprint
21 hass: HomeAssistant, blueprint_path: str
23 """Reload all automations that rely on a specific blueprint."""
24 await hass.services.async_call(DOMAIN, SERVICE_RELOAD)
27 @singleton(DATA_BLUEPRINTS)
30 """Get automation blueprints."""
32 from .config
import AUTOMATION_BLUEPRINT_SCHEMA
39 _reload_blueprint_automations,
40 AUTOMATION_BLUEPRINT_SCHEMA,
bool _blueprint_in_use(HomeAssistant hass, str blueprint_path)
None _reload_blueprint_automations(HomeAssistant hass, str blueprint_path)
blueprint.DomainBlueprints async_get_blueprints(HomeAssistant hass)
list[str] automations_with_blueprint(HomeAssistant hass, str blueprint_path)