We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8f52e3 commit 6538c9fCopy full SHA for 6538c9f
custom_components/pyscript/__init__.py
@@ -307,7 +307,9 @@ async def install_requirements(hass):
307
# Attempt to get version of package. Do nothing if it's found since
308
# we want to use the version that's already installed to be safe
309
requirement = pkg_resources.Requirement.parse(pkg)
310
- requirement_installed_version = installed_version(requirement.project_name)
+ requirement_installed_version = await hass.async_add_executor_job(
311
+ installed_version, requirement.project_name
312
+ )
313
314
if requirement_installed_version in requirement:
315
_LOGGER.debug("`%s` already found", requirement.project_name)
0 commit comments