Skip to content

Commit

Permalink
Remove usage of deprecated hass.helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Apr 27, 2024
1 parent 00792a4 commit db704b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/yandex_smart_home/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.entityfilter import BASE_FILTER_SCHEMA, FILTER_SCHEMA
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 @@ -191,7 +192,7 @@ async def _handle_reload(*_):
hass.data[DOMAIN][YAML_CONFIG] = config.get(DOMAIN)
_update_config_entries(hass)

hass.helpers.service.async_register_admin_service(DOMAIN, SERVICE_RELOAD, _handle_reload)
async_register_admin_service(hass, DOMAIN, SERVICE_RELOAD, _handle_reload)

_update_config_entries(hass)

Expand Down

0 comments on commit db704b1

Please sign in to comment.