mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Code styling tweaks to core utils & YAML loader (#85433)
Code styling tweaks to core utils
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user