Adjust hue tests which create devices (#98195)

This commit is contained in:
Erik Montnemery 2023-08-10 18:27:05 +02:00 committed by GitHub
parent 3fdc98063e
commit 49011f0158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,7 @@ async def test_light_entity_migration(
) -> None:
"""Test if entity schema for lights migrates from v1 to v2."""
config_entry = mock_bridge_v2.config_entry = mock_config_entry_v2
config_entry.add_to_hass(hass)
ent_reg = er.async_get(hass)
dev_reg = dr.async_get(hass)
@ -92,6 +93,7 @@ async def test_sensor_entity_migration(
) -> None:
"""Test if entity schema for sensors migrates from v1 to v2."""
config_entry = mock_bridge_v2.config_entry = mock_config_entry_v2
config_entry.add_to_hass(hass)
ent_reg = er.async_get(hass)
dev_reg = dr.async_get(hass)