mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 14:08:21 +00:00
Remove group as a dependency from entity integrations (#32870)
* remove group dependency * Update device sun light trigger * Add zone dep back to device tracker
This commit is contained in:
@@ -156,7 +156,7 @@ def calc_allowed_references(integration: Integration) -> Set[str]:
|
||||
"""Return a set of allowed references."""
|
||||
allowed_references = (
|
||||
ALLOWED_USED_COMPONENTS
|
||||
| set(integration.manifest["dependencies"])
|
||||
| set(integration.manifest.get("dependencies", []))
|
||||
| set(integration.manifest.get("after_dependencies", []))
|
||||
)
|
||||
|
||||
@@ -250,7 +250,7 @@ def validate(integrations: Dict[str, Integration], config):
|
||||
validate_dependencies(integrations, integration)
|
||||
|
||||
# check that all referenced dependencies exist
|
||||
for dep in integration.manifest["dependencies"]:
|
||||
for dep in integration.manifest.get("dependencies", []):
|
||||
if dep not in integrations:
|
||||
integration.add_error(
|
||||
"dependencies", f"Dependency {dep} does not exist"
|
||||
|
||||
@@ -52,8 +52,8 @@ MANIFEST_SCHEMA = vol.Schema(
|
||||
vol.Url(), documentation_url # pylint: disable=no-value-for-parameter
|
||||
),
|
||||
vol.Optional("quality_scale"): vol.In(SUPPORTED_QUALITY_SCALES),
|
||||
vol.Required("requirements"): [str],
|
||||
vol.Required("dependencies"): [str],
|
||||
vol.Optional("requirements"): [str],
|
||||
vol.Optional("dependencies"): [str],
|
||||
vol.Optional("after_dependencies"): [str],
|
||||
vol.Required("codeowners"): [str],
|
||||
vol.Optional("logo"): vol.Url(), # pylint: disable=no-value-for-parameter
|
||||
|
||||
Reference in New Issue
Block a user