From d1eb1d4cd7ea34467886478dd9367e73276b55ba Mon Sep 17 00:00:00 2001 From: Artem Sorokin Date: Sat, 27 Apr 2024 15:50:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=BE=20?= =?UTF-8?q?=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20hass.helpers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/yandex_station_intents/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/yandex_station_intents/__init__.py b/custom_components/yandex_station_intents/__init__.py index ae87586..e2bcdd4 100644 --- a/custom_components/yandex_station_intents/__init__.py +++ b/custom_components/yandex_station_intents/__init__.py @@ -11,6 +11,7 @@ from homeassistant.exceptions import ConfigEntryNotReady, HomeAssistantError from homeassistant.helpers import config_validation as cv, issue_registry as ir, template as template_helper from homeassistant.helpers.reload import async_integration_yaml_config +from homeassistant.helpers.service import async_register_admin_service from homeassistant.helpers.typing import ConfigType import voluptuous as vol @@ -163,7 +164,7 @@ async def _handle_reload(_: ServiceCall) -> None: return_exceptions=True, ) - hass.helpers.service.async_register_admin_service(DOMAIN, SERVICE_RELOAD, _handle_reload) + async_register_admin_service(hass, DOMAIN, SERVICE_RELOAD, _handle_reload) async def _clear_scenarios(service: ServiceCall) -> None: if service.data.get(CLEAR_CONFIRM_KEY, "").lower() != CLEAR_CONFIRM_TEXT: