mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Throw error in hassfest when integration is missing version (#45976)
This commit is contained in:
@@ -119,7 +119,7 @@ def validate_version(integration: Integration):
|
||||
Will be removed when the version key is no longer optional for custom integrations.
|
||||
"""
|
||||
if not integration.manifest.get("version"):
|
||||
integration.add_warning(
|
||||
integration.add_error(
|
||||
"manifest",
|
||||
"No 'version' key in the manifest file. This will cause a future version of Home Assistant to block this integration.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user