Skip to content

Commit

Permalink
Merge pull request #249 from mdeweerd/dev
Browse files Browse the repository at this point in the history
Improve/correct async loading of Version
  • Loading branch information
mdeweerd committed Aug 8, 2024
2 parents e9af967 + c321250 commit 3b7cde8
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 @@ -657,7 +657,7 @@ async def async_setup(hass, config):
return True

LOGGER.debug("Setup services from async_setup")
register_services(hass)
await register_services(hass)

return True

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

currentVersion = hass.async_add_executor_job(u.getVersion)
currentVersion = await u.getVersion()
if currentVersion != LOADED_VERSION:
LOGGER.debug(
"Reload services because VERSION changed from %s to %s",
Expand Down

0 comments on commit 3b7cde8

Please sign in to comment.