mirror of
https://github.com/home-assistant/core.git
synced 2025-12-27 06:28:31 +00:00
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:
@@ -50,7 +50,7 @@ async def test_get_actions(hass, device_ias):
|
||||
ieee_address = str(device_ias[0].ieee)
|
||||
|
||||
ha_device_registry = await async_get_registry(hass)
|
||||
reg_device = ha_device_registry.async_get_device({(DOMAIN, ieee_address)}, set())
|
||||
reg_device = ha_device_registry.async_get_device({(DOMAIN, ieee_address)})
|
||||
|
||||
actions = await async_get_device_automations(hass, "action", reg_device.id)
|
||||
|
||||
@@ -73,7 +73,7 @@ async def test_action(hass, device_ias):
|
||||
ieee_address = str(zha_device.ieee)
|
||||
|
||||
ha_device_registry = await async_get_registry(hass)
|
||||
reg_device = ha_device_registry.async_get_device({(DOMAIN, ieee_address)}, set())
|
||||
reg_device = ha_device_registry.async_get_device({(DOMAIN, ieee_address)})
|
||||
|
||||
with patch(
|
||||
"zigpy.zcl.Cluster.request",
|
||||
|
||||
Reference in New Issue
Block a user