Skip to content

Commit

Permalink
Удалено использование hass.helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Apr 27, 2024
1 parent 299d2dd commit 95df994
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/yandex_station_intents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 95df994

Please sign in to comment.