mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Adjust hue tests which create devices (#98195)
This commit is contained in:
parent
3fdc98063e
commit
49011f0158
@ -48,6 +48,7 @@ async def test_light_entity_migration(
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Test if entity schema for lights migrates from v1 to v2."""
|
"""Test if entity schema for lights migrates from v1 to v2."""
|
||||||
config_entry = mock_bridge_v2.config_entry = mock_config_entry_v2
|
config_entry = mock_bridge_v2.config_entry = mock_config_entry_v2
|
||||||
|
config_entry.add_to_hass(hass)
|
||||||
|
|
||||||
ent_reg = er.async_get(hass)
|
ent_reg = er.async_get(hass)
|
||||||
dev_reg = dr.async_get(hass)
|
dev_reg = dr.async_get(hass)
|
||||||
@ -92,6 +93,7 @@ async def test_sensor_entity_migration(
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Test if entity schema for sensors migrates from v1 to v2."""
|
"""Test if entity schema for sensors migrates from v1 to v2."""
|
||||||
config_entry = mock_bridge_v2.config_entry = mock_config_entry_v2
|
config_entry = mock_bridge_v2.config_entry = mock_config_entry_v2
|
||||||
|
config_entry.add_to_hass(hass)
|
||||||
|
|
||||||
ent_reg = er.async_get(hass)
|
ent_reg = er.async_get(hass)
|
||||||
dev_reg = dr.async_get(hass)
|
dev_reg = dr.async_get(hass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user