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 velbus config flow (#94276)
This commit is contained in:
parent
35ad40421b
commit
0dbdfb7e70
@ -74,9 +74,7 @@ class VelbusConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
await self.async_set_unique_id(
|
||||
f"{discovery_info.vid}:{discovery_info.pid}_{discovery_info.serial_number}_{discovery_info.manufacturer}_{discovery_info.description}"
|
||||
)
|
||||
dev_path = await self.hass.async_add_executor_job(
|
||||
usb.get_serial_by_id, discovery_info.device
|
||||
)
|
||||
dev_path = discovery_info.device
|
||||
# check if this device is not already configured
|
||||
self._async_abort_entries_match({CONF_PORT: dev_path})
|
||||
# check if we can make a valid velbus connection
|
||||
|
Loading…
x
Reference in New Issue
Block a user