mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Remove call to get_serial_by_id in homeassistant_sky_connect (#135751)
This commit is contained in:
parent
14f3868c26
commit
028a0d4eec
@ -144,11 +144,8 @@ class HomeAssistantSkyConnectMultiPanOptionsFlowHandler(
|
||||
self,
|
||||
) -> silabs_multiprotocol_addon.SerialPortSettings:
|
||||
"""Return the radio serial port settings."""
|
||||
usb_dev = self.config_entry.data["device"]
|
||||
# The call to get_serial_by_id can be removed in HA Core 2024.1
|
||||
dev_path = await self.hass.async_add_executor_job(usb.get_serial_by_id, usb_dev)
|
||||
return silabs_multiprotocol_addon.SerialPortSettings(
|
||||
device=dev_path,
|
||||
device=self.config_entry.data["device"],
|
||||
baudrate="115200",
|
||||
flow_control=True,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user