Update hassfest dependency check (#64638)

This commit is contained in:
Paulus Schoutsen 2022-01-21 09:29:17 -08:00 committed by GitHub
parent 07e10c645b
commit 9f12612391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,14 @@ class ImportCollector(ast.NodeVisitor):
if node.module is None:
return
# Exception: we will allow importing the sign path code.
if (
node.module == "homeassistant.components.http.auth"
and len(node.names) == 1
and node.names[0].name == "async_sign_path"
):
return
if node.module.startswith("homeassistant.components."):
# from homeassistant.components.alexa.smart_home import EVENT_ALEXA_SMART_HOME
# from homeassistant.components.logbook import bla
@ -107,6 +115,7 @@ ALLOWED_USED_COMPONENTS = {
"input_number",
"input_select",
"input_text",
"media_source",
"onboarding",
"persistent_notification",
"person",