mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Drop call to usb.get_serial_by_id from zwave_js config flow (#94279)
This commit is contained in:
parent
288708474b
commit
5e3b632b14
@ -415,7 +415,6 @@ class ConfigFlow(BaseZwaveJSFlow, config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
vid = discovery_info.vid
|
vid = discovery_info.vid
|
||||||
pid = discovery_info.pid
|
pid = discovery_info.pid
|
||||||
serial_number = discovery_info.serial_number
|
serial_number = discovery_info.serial_number
|
||||||
device = discovery_info.device
|
|
||||||
manufacturer = discovery_info.manufacturer
|
manufacturer = discovery_info.manufacturer
|
||||||
description = discovery_info.description
|
description = discovery_info.description
|
||||||
# Zooz uses this vid/pid, but so do 2652 sticks
|
# Zooz uses this vid/pid, but so do 2652 sticks
|
||||||
@ -430,7 +429,7 @@ class ConfigFlow(BaseZwaveJSFlow, config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
f"{vid}:{pid}_{serial_number}_{manufacturer}_{description}"
|
f"{vid}:{pid}_{serial_number}_{manufacturer}_{description}"
|
||||||
)
|
)
|
||||||
self._abort_if_unique_id_configured()
|
self._abort_if_unique_id_configured()
|
||||||
dev_path = await self.hass.async_add_executor_job(usb.get_serial_by_id, device)
|
dev_path = discovery_info.device
|
||||||
self.usb_path = dev_path
|
self.usb_path = dev_path
|
||||||
self._title = usb.human_readable_device_name(
|
self._title = usb.human_readable_device_name(
|
||||||
dev_path,
|
dev_path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user