Use set for dependency lookup in hassfest (#31746)

This commit is contained in:
Paulus Schoutsen 2020-02-12 03:59:59 -08:00 committed by GitHub
parent 0700d38d1f
commit cde414e1df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,7 @@ ALLOWED_USED_COMPONENTS = {
"stream", # Stream cannot install on all systems, can be imported without reqs.
}
IGNORE_VIOLATIONS = [
IGNORE_VIOLATIONS = {
# Has same requirement, gets defaults.
("sql", "recorder"),
# Sharing a base class
@ -136,7 +136,7 @@ IGNORE_VIOLATIONS = [
"dwd_weather_warnings",
# Should be rewritten to use own data fetcher
"scrape",
]
}
def calc_allowed_references(integration: Integration) -> Set[str]: