Code styling tweaks to core utils & YAML loader (#85433)
Code styling tweaks to core utils
This commit is contained in:
parent
aa1c539683
commit
7adb8d5ddc
11 changed files with 68 additions and 51 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue