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:
Erik Montnemery 2023-07-13 19:39:25 +02:00 committed by GitHub
parent 5f46436057
commit 7539cf25be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
143 changed files with 654 additions and 494 deletions

View file

@ -182,7 +182,7 @@ async def test_light_device_registry(
device_registry = dr.async_get(hass)
device = device_registry.async_get_device(
identifiers={}, connections={(dr.CONNECTION_NETWORK_MAC, MAC_ADDRESS)}
connections={(dr.CONNECTION_NETWORK_MAC, MAC_ADDRESS)}
)
assert device.sw_version == str(sw_version)
assert device.model == model