diff --git a/script/hassfest/dependencies.py b/script/hassfest/dependencies.py index 9769e2c3614..b5d82f7b348 100644 --- a/script/hassfest/dependencies.py +++ b/script/hassfest/dependencies.py @@ -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",