Add new rule to enforce relative imports in pylint (#77358)
* Add new rule to enforce relative imports in pylint * Early return * Adjust components
This commit is contained in:
parent
067d21a307
commit
8ed689fede
23 changed files with 46 additions and 23 deletions
|
@ -3,7 +3,7 @@ import json
|
|||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components import trace, websocket_api
|
||||
from homeassistant.components import websocket_api
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.helpers.dispatcher import (
|
||||
|
@ -24,6 +24,8 @@ from homeassistant.helpers.script import (
|
|||
debug_stop,
|
||||
)
|
||||
|
||||
from .. import trace
|
||||
|
||||
# mypy: allow-untyped-calls, allow-untyped-defs
|
||||
|
||||
TRACE_DOMAINS = ("automation", "script")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue