From 35ad40421bd35714f9db3a2ac1c27f44ab6729d0 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 8 Jun 2023 19:21:08 +0200 Subject: [PATCH] Drop call to usb.get_serial_by_id from zha config flow (#94278) --- homeassistant/components/zha/config_flow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/zha/config_flow.py b/homeassistant/components/zha/config_flow.py index 91bc2ac42a2..ba50839ee44 100644 --- a/homeassistant/components/zha/config_flow.py +++ b/homeassistant/components/zha/config_flow.py @@ -552,10 +552,9 @@ class ZhaConfigFlowHandler(BaseZhaFlow, config_entries.ConfigFlow, domain=DOMAIN vid = discovery_info.vid pid = discovery_info.pid serial_number = discovery_info.serial_number - device = discovery_info.device manufacturer = discovery_info.manufacturer description = discovery_info.description - dev_path = await self.hass.async_add_executor_job(usb.get_serial_by_id, device) + dev_path = discovery_info.device await self._set_unique_id_or_update_path( unique_id=f"{vid}:{pid}_{serial_number}_{manufacturer}_{description}",