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:
parent
5f46436057
commit
7539cf25be
143 changed files with 654 additions and 494 deletions
|
@ -325,9 +325,7 @@ async def assert_devices_and_entities_created(
|
|||
# we have detected broken serial numbers (and serial number is not used as an identifier).
|
||||
|
||||
device = device_registry.async_get_device(
|
||||
{
|
||||
(IDENTIFIER_ACCESSORY_ID, expected.unique_id),
|
||||
}
|
||||
identifiers={(IDENTIFIER_ACCESSORY_ID, expected.unique_id)}
|
||||
)
|
||||
|
||||
logger.debug("Comparing device %r to %r", device, expected)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue