From 5e363d124ec945857830626d761c8ea625a347fd Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Thu, 18 Apr 2019 20:21:30 -0400 Subject: [PATCH] fix bindable devices (#23216) --- homeassistant/components/zha/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/zha/api.py b/homeassistant/components/zha/api.py index aacb0a711a5..0604c2fada4 100644 --- a/homeassistant/components/zha/api.py +++ b/homeassistant/components/zha/api.py @@ -351,10 +351,11 @@ async def websocket_get_bindable_devices(hass, connection, msg): zha_gateway = hass.data[DATA_ZHA][DATA_ZHA_GATEWAY] source_ieee = msg[ATTR_IEEE] source_device = zha_gateway.get_device(source_ieee) + ha_device_registry = await async_get_registry(hass) devices = [ - { - **device.device_info - } for device in zha_gateway.devices.values() if + async_get_device_info( + hass, device, ha_device_registry=ha_device_registry + ) for device in zha_gateway.devices.values() if async_is_bindable_target(source_device, device) ]