Fix config modules being imported in the event loop (#112462)

* Fix config modules being imported in the event loop

There was a late import in this integration because of the circular import.

The code has been rearranged to avoid the circular imports

* fixes

* fixes

* fix patching

* make eager

* remove unrelated change from this branch
This commit is contained in:
J. Nick Koston 2024-03-05 16:18:57 -10:00 committed by GitHub
parent f03be2fd9e
commit 3f9dbd3e25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 317 additions and 287 deletions

View file

@ -13,7 +13,8 @@ from homeassistant.const import SERVICE_RELOAD
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers import config_validation as cv, entity_registry as er
from . import ACTION_DELETE, EditKeyBasedConfigView
from .const import ACTION_DELETE
from .view import EditKeyBasedConfigView
@callback