Skip to content

Commit 3b7cde8

Browse files
authored
Merge pull request #249 from mdeweerd/dev
Improve/correct async loading of Version
2 parents e9af967 + c321250 commit 3b7cde8

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
@@ -657,7 +657,7 @@ async def async_setup(hass, config):
657657
return True
658658

659659
LOGGER.debug("Setup services from async_setup")
660-
register_services(hass)
660+
await register_services(hass)
661661

662662
return True
663663

@@ -710,7 +710,7 @@ async def toolkit_service(service):
710710
LOGGER.debug("module is %s", module)
711711
importlib.reload(u)
712712

713-
currentVersion = hass.async_add_executor_job(u.getVersion)
713+
currentVersion = await u.getVersion()
714714
if currentVersion != LOADED_VERSION:
715715
LOGGER.debug(
716716
"Reload services because VERSION changed from %s to %s",

0 commit comments

Comments
 (0)