Skip to content

Commit

Permalink
🔧 fix for reload service (#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Apr 26, 2024
1 parent c419b81 commit 584971e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/xiaomi_miot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.helpers.reload import async_integration_yaml_config
from homeassistant.helpers.service import async_register_admin_service
import homeassistant.helpers.device_registry as dr
import homeassistant.helpers.config_validation as cv

Expand Down Expand Up @@ -572,7 +573,8 @@ async def _handle_reload_config(service):
]
await asyncio.gather(*reload_tasks)

hass.helpers.service.async_register_admin_service(
async_register_admin_service(
hass,
DOMAIN,
SERVICE_RELOAD,
_handle_reload_config,
Expand Down

0 comments on commit 584971e

Please sign in to comment.