Use registry fixtures in tests (a-h) (#118288)

This commit is contained in:
epenet
2024-05-28 13:15:16 +02:00
committed by GitHub
parent e9ab9b818f
commit 8837c50da7
11 changed files with 68 additions and 50 deletions

View File

@@ -250,6 +250,7 @@ async def test_services(
service_call: list[dict[str, Any]],
bypass_throttle: Generator[None, Any, None],
hass: HomeAssistant,
device_registry: dr.DeviceRegistry,
config_entry: MockConfigEntry,
integration_setup: Callable[[], Awaitable[bool]],
setup_credentials: None,
@@ -262,7 +263,6 @@ async def test_services(
assert await integration_setup()
assert config_entry.state == ConfigEntryState.LOADED
device_registry = dr.async_get(hass)
device_entry = device_registry.async_get_or_create(
config_entry_id=config_entry.entry_id,
identifiers={(DOMAIN, appliance.haId)},