Make DeviceRegistry.async_get_device connections arg optional (#44897)
* Make async_get_device connections Optional, default None * Remove unnecessary async_get_device connections arg usages Some of these were using an incorrect collection type, which didn't cause issues mostly just due to luck.
This commit is contained in:
parent
751ac0b955
commit
2fb3be50ab
57 changed files with 181 additions and 232 deletions
|
@ -115,7 +115,7 @@ async def test_entity_and_device_attributes(hass, device_factory):
|
|||
assert entry
|
||||
assert entry.unique_id == device.device_id
|
||||
|
||||
entry = device_registry.async_get_device({(DOMAIN, device.device_id)}, [])
|
||||
entry = device_registry.async_get_device({(DOMAIN, device.device_id)})
|
||||
assert entry
|
||||
assert entry.name == device.label
|
||||
assert entry.model == device.device_type_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue