Skip to content

Commit ad0ef0e

Browse files
committed
Fix non-async load_yaml of services.yaml
1 parent 47d3f27 commit ad0ef0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/zha_toolkit/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ async def command_handler_default(
893893
)
894894

895895

896-
async def reload_services_yaml(hass):
896+
def reload_services_yaml(hass):
897897
import os
898898

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

918918
async def _register_services(hass):
919919
register_services(hass)
920-
await reload_services_yaml(hass)
920+
await hass.async_add_executor_job(reload_services_yaml, hass)
921921

922922

923923
#

0 commit comments

Comments
 (0)