Install requirements of after_dependencies when loading integrations (#29491)
* Install requirements of after_dependencies when loading integrations * Fix smartthings test
This commit is contained in:
parent
957e5018f4
commit
e99184bf68
19 changed files with 57 additions and 98 deletions
|
@ -43,15 +43,12 @@ def validate_dependencies(integration: Integration):
|
|||
|
||||
if referenced:
|
||||
for domain in sorted(referenced):
|
||||
print(
|
||||
"Warning: {} references integration {} but it's not a "
|
||||
"dependency".format(integration.domain, domain)
|
||||
integration.add_error(
|
||||
"dependencies",
|
||||
"Using component {} but it's not in 'dependencies' or 'after_dependencies'".format(
|
||||
domain
|
||||
),
|
||||
)
|
||||
# Not enforced yet.
|
||||
# integration.add_error(
|
||||
# 'dependencies',
|
||||
# "Using component {} but it's not a dependency".format(domain)
|
||||
# )
|
||||
|
||||
|
||||
def validate(integrations: Dict[str, Integration], config):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue