Skip to content
Snippets Groups Projects
Unverified Commit 13a9b83e authored by Erik Montnemery's avatar Erik Montnemery Committed by GitHub
Browse files

Adjust mqtt tests which create devices (#98202)

parent 0b69f37d
Branches
Tags
No related merge requests found
......@@ -48,7 +48,7 @@ from .test_common import (
help_test_update_with_json_attrs_not_dict,
)
from tests.common import async_fire_mqtt_message
from tests.common import MockConfigEntry, async_fire_mqtt_message
from tests.typing import MqttMockHAClientGenerator, MqttMockPahoClient
DEFAULT_CONFIG = {
......@@ -503,9 +503,11 @@ async def test_entity_device_info_with_hub(
) -> None:
"""Test MQTT event device registry integration."""
await mqtt_mock_entry()
other_config_entry = MockConfigEntry()
other_config_entry.add_to_hass(hass)
registry = dr.async_get(hass)
hub = registry.async_get_or_create(
config_entry_id="123",
config_entry_id=other_config_entry.entry_id,
connections=set(),
identifiers={("mqtt", "hub-id")},
manufacturer="manufacturer",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment