Refactor alexa modules to avoid circular deps (#97618)

* Refactor alexa modules to avoid circula deps

* Add test http api auth and AlexaConfig

* Update test

* Improve test
This commit is contained in:
Jan Bouwhuis 2023-08-05 21:32:53 +02:00 committed by GitHub
parent 6c8971f18a
commit 2e8e5aabae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 388 additions and 354 deletions

View file

@ -4,7 +4,7 @@ from uuid import uuid4
import pytest
from homeassistant.components.alexa import config, smart_home, smart_home_http
from homeassistant.components.alexa import config, smart_home
from homeassistant.components.alexa.const import CONF_ENDPOINT, CONF_FILTER, CONF_LOCALE
from homeassistant.core import Context, callback
from homeassistant.helpers import entityfilter
@ -16,7 +16,7 @@ TEST_TOKEN_URL = "https://api.amazon.com/auth/o2/token"
TEST_LOCALE = "en-US"
class MockConfig(smart_home_http.AlexaConfig):
class MockConfig(smart_home.AlexaConfig):
"""Mock Alexa config."""
entity_config = {