Drop call to usb.get_serial_by_id from velbus config flow (#94276)

This commit is contained in:
Erik Montnemery 2023-06-08 19:21:19 +02:00 committed by GitHub
parent 35ad40421b
commit 0dbdfb7e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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