Drop use of async_mock_mqtt_component (#37011)
This commit is contained in:
1 parent
a2e2c35011
commit
280f49540e
25 files changed
+126
-209
No files matched your search
@@ -8,12 +8,7 @@ from homeassistant.const import STATE_NOT_HOME
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.async_mock import patch
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
async_fire_mqtt_message,
|
||||
async_mock_mqtt_component,
|
||||
mock_coro,
|
||||
)
|
||||
from tests.common import MockConfigEntry, async_fire_mqtt_message, mock_coro
|
||||
|
||||
USER = "greg"
|
||||
DEVICE = "phone"
|
||||
@@ -286,13 +281,12 @@ BAD_JSON_SUFFIX = "** and it ends here ^^"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def setup_comp(hass, mock_device_tracker_conf):
|
||||
def setup_comp(hass, mock_device_tracker_conf, mqtt_mock):
|
||||
"""Initialize components."""
|
||||
assert hass.loop.run_until_complete(
|
||||
async_setup_component(hass, "persistent_notification", {})
|
||||
)
|
||||
hass.loop.run_until_complete(async_setup_component(hass, "device_tracker", {}))
|
||||
hass.loop.run_until_complete(async_mock_mqtt_component(hass))
|
||||
|
||||
hass.states.async_set("zone.inner", "zoning", INNER_ZONE)
|
||||
|
||||
|
||||
Reference in new issue
Block a user