Update hassfest dependency check (#64638)
This commit is contained in:
parent
07e10c645b
commit
9f12612391
1 changed files with 9 additions and 0 deletions
|
@ -41,6 +41,14 @@ class ImportCollector(ast.NodeVisitor):
|
||||||
if node.module is None:
|
if node.module is None:
|
||||||
return
|
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."):
|
if node.module.startswith("homeassistant.components."):
|
||||||
# from homeassistant.components.alexa.smart_home import EVENT_ALEXA_SMART_HOME
|
# from homeassistant.components.alexa.smart_home import EVENT_ALEXA_SMART_HOME
|
||||||
# from homeassistant.components.logbook import bla
|
# from homeassistant.components.logbook import bla
|
||||||
|
@ -107,6 +115,7 @@ ALLOWED_USED_COMPONENTS = {
|
||||||
"input_number",
|
"input_number",
|
||||||
"input_select",
|
"input_select",
|
||||||
"input_text",
|
"input_text",
|
||||||
|
"media_source",
|
||||||
"onboarding",
|
"onboarding",
|
||||||
"persistent_notification",
|
"persistent_notification",
|
||||||
"person",
|
"person",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue