Skip to content

Commit

Permalink
Fix non-async load_yaml of services.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Aug 5, 2024
1 parent 47d3f27 commit ad0ef0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/zha_toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ async def command_handler_default(
)


async def reload_services_yaml(hass):
def reload_services_yaml(hass):
import os

from homeassistant.const import CONF_DESCRIPTION, CONF_NAME
Expand All @@ -917,7 +917,7 @@ async def reload_services_yaml(hass):

async def _register_services(hass):
register_services(hass)
await reload_services_yaml(hass)
await hass.async_add_executor_job(reload_services_yaml, hass)


#
Expand Down

0 comments on commit ad0ef0e

Please sign in to comment.