Force root import of references from other components (#125816)

* Force root import of references from other components

* Improve

* Adjust

* Tweak exceptions

* Another

* Another

* Another

* Another

* Another

* Another

* Another

* Another

* Another

* Another

* Another

* Another

* Adjust

* More

* Ignore violations in test

* Improve
This commit is contained in:
epenet
2024-09-16 11:28:42 +02:00
committed by GitHub
parent 9f1cc638c9
commit 02cb6a6af7
10 changed files with 72 additions and 6 deletions

View File

@@ -11,6 +11,8 @@ import pytest
import voluptuous as vol
from homeassistant.components import logbook, recorder
# pylint: disable-next=hass-component-root-import
from homeassistant.components.alexa.smart_home import EVENT_ALEXA_SMART_HOME
from homeassistant.components.automation import EVENT_AUTOMATION_TRIGGERED
from homeassistant.components.logbook.models import EventAsRow, LazyEventPartialState