mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user