Code styling tweaks to core utils & YAML loader (#85433)

Code styling tweaks to core utils
This commit is contained in:
Franck Nijhof
2023-01-09 07:01:55 +01:00
committed by GitHub
parent aa1c539683
commit 7adb8d5ddc
11 changed files with 68 additions and 51 deletions

View File

@@ -52,7 +52,9 @@ def is_installed(package: str) -> bool:
# was aborted while in progress see
# https://github.com/home-assistant/core/issues/47699
if installed_version is None:
_LOGGER.error("Installed version for %s resolved to None", req.project_name) # type: ignore[unreachable]
_LOGGER.error( # type: ignore[unreachable]
"Installed version for %s resolved to None", req.project_name
)
return False
return installed_version in req
except PackageNotFoundError: