mirror of
https://github.com/home-assistant/core.git
synced 2025-11-06 01:19:29 +00:00
Update h* tests to use entity & device registry fixtures (#103866)
* Update h* tests to use entity & device registry fixtures * Add missed lines
This commit is contained in:
committed by
GitHub
parent
3a531f5698
commit
eda475fe25
@@ -455,11 +455,12 @@ async def test_dehumidifier_target_humidity_modes(hass: HomeAssistant, utcnow) -
|
||||
assert state.attributes["current_humidity"] == 51
|
||||
|
||||
|
||||
async def test_migrate_entity_ids(hass: HomeAssistant, utcnow) -> None:
|
||||
async def test_migrate_entity_ids(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry, utcnow
|
||||
) -> None:
|
||||
"""Test that we can migrate humidifier entity ids."""
|
||||
aid = get_next_aid()
|
||||
|
||||
entity_registry = er.async_get(hass)
|
||||
humidifier_entry = entity_registry.async_get_or_create(
|
||||
"humidifier",
|
||||
"homekit_controller",
|
||||
|
||||
Reference in New Issue
Block a user