mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Don't require passing identifiers to DeviceRegistry.async_get_device (#96479)
* Require keyword arguments to DeviceRegistry.async_get_device * Update tests * Update tests * Don't enforce keyword arguments
This commit is contained in:
@@ -33,7 +33,7 @@ async def test_remote_setup_works(
|
||||
mock_setup = await device.setup_entry(hass)
|
||||
|
||||
device_entry = device_registry.async_get_device(
|
||||
{(DOMAIN, mock_setup.entry.unique_id)}
|
||||
identifiers={(DOMAIN, mock_setup.entry.unique_id)}
|
||||
)
|
||||
entries = er.async_entries_for_device(entity_registry, device_entry.id)
|
||||
remotes = [entry for entry in entries if entry.domain == Platform.REMOTE]
|
||||
@@ -58,7 +58,7 @@ async def test_remote_send_command(
|
||||
mock_setup = await device.setup_entry(hass)
|
||||
|
||||
device_entry = device_registry.async_get_device(
|
||||
{(DOMAIN, mock_setup.entry.unique_id)}
|
||||
identifiers={(DOMAIN, mock_setup.entry.unique_id)}
|
||||
)
|
||||
entries = er.async_entries_for_device(entity_registry, device_entry.id)
|
||||
remotes = [entry for entry in entries if entry.domain == Platform.REMOTE]
|
||||
@@ -87,7 +87,7 @@ async def test_remote_turn_off_turn_on(
|
||||
mock_setup = await device.setup_entry(hass)
|
||||
|
||||
device_entry = device_registry.async_get_device(
|
||||
{(DOMAIN, mock_setup.entry.unique_id)}
|
||||
identifiers={(DOMAIN, mock_setup.entry.unique_id)}
|
||||
)
|
||||
entries = er.async_entries_for_device(entity_registry, device_entry.id)
|
||||
remotes = [entry for entry in entries if entry.domain == Platform.REMOTE]
|
||||
|
||||
Reference in New Issue
Block a user