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:
parent
682fcec99e
commit
397238372e
14 changed files with 19 additions and 16 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue