1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Remove more useless manifest truthiness checks in hassfest (#82914)

This commit is contained in:
Aarni Koskela
2022-11-29 22:57:58 +02:00
committed by GitHub
parent 205a2ee215
commit 16fc2972d3
3 changed files with 4 additions and 7 deletions

View File

@@ -292,7 +292,7 @@ def validate_version(integration: Integration) -> None:
Will be removed when the version key is no longer optional for custom integrations.
"""
if not (integration.manifest and integration.manifest.get("version")):
if not integration.manifest.get("version"):
integration.add_error("manifest", "No 'version' key in the manifest file.")
return