Skip to content

Commit

Permalink
Remove original exception from exception constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rrooggiieerr committed Aug 24, 2023
1 parent a8a0c6d commit c07df4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xyscreens/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def validate_input_setup_serial(
await test_serial_port(self.hass, serial_port)
except serial.SerialException as ex:
raise CannotConnect(
f"Unable to connect to the device {serial_port}: {ex}", ex
f"Unable to connect to the device {serial_port}: {ex}"
) from ex

# Return title, data and options
Expand Down

0 comments on commit c07df4b

Please sign in to comment.