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
|
@ -47,7 +47,7 @@ async def test_cover_get_state(
|
|||
registry = er.async_get(hass)
|
||||
registry_device = dr.async_get(hass)
|
||||
|
||||
device = registry_device.async_get_device({("freedompro", uid)})
|
||||
device = registry_device.async_get_device(identifiers={("freedompro", uid)})
|
||||
assert device is not None
|
||||
assert device.identifiers == {("freedompro", uid)}
|
||||
assert device.manufacturer == "Freedompro"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue