1 """Helpers for automation integration."""
8 from .const
import DOMAIN, LOGGER
10 DATA_BLUEPRINTS =
"script_blueprints"
14 """Return True if any script references the blueprint."""
15 from .
import scripts_with_blueprint
21 """Reload all script that rely on a specific blueprint."""
22 await hass.services.async_call(DOMAIN, SERVICE_RELOAD)
25 @singleton(DATA_BLUEPRINTS)
28 """Get script blueprints."""
34 _reload_blueprint_scripts,
None _reload_blueprint_scripts(HomeAssistant hass, str blueprint_path)
DomainBlueprints async_get_blueprints(HomeAssistant hass)
bool _blueprint_in_use(HomeAssistant hass, str blueprint_path)
list[str] scripts_with_blueprint(HomeAssistant hass, str blueprint_path)