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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user