Skip to content

Commit 9d3b156

Browse files
authored
Remove more components from _IGNORE_ROOT_IMPORT in pylint plugin (home-assistant#154667)
1 parent e14407f commit 9d3b156

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

homeassistant/components/config/script.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
from typing import Any
66

77
from homeassistant.components.script import DOMAIN as SCRIPT_DOMAIN
8-
from homeassistant.components.script.config import async_validate_config_item
8+
from homeassistant.components.script.config import ( # pylint: disable=hass-component-root-import
9+
async_validate_config_item,
10+
)
911
from homeassistant.config import SCRIPT_CONFIG_PATH
1012
from homeassistant.const import SERVICE_RELOAD
1113
from homeassistant.core import HomeAssistant, callback

pylint/plugins/hass_imports.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ class ObsoleteImportMatch:
133133
"http",
134134
"recorder",
135135
"rest",
136-
"script",
137-
"stream",
138136
)
139137

140138

tests/helpers/test_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from homeassistant.components import calendar, todo
1111
from homeassistant.components.homeassistant.exposed_entities import async_expose_entity
1212
from homeassistant.components.intent import async_register_timer_handler
13-
from homeassistant.components.script.config import ScriptConfig
13+
from homeassistant.components.script import ScriptConfig
1414
from homeassistant.core import Context, HomeAssistant, State, SupportsResponse
1515
from homeassistant.exceptions import HomeAssistantError
1616
from homeassistant.helpers import (

0 commit comments

Comments
 (0)