Skip to content

Commit

Permalink
Fix pylint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rrooggiieerr committed Jan 3, 2023
1 parent f7d2311 commit 12e8cef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/xyscreens/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
connection.close()

_LOGGER.info("Device %s is available", serial_port)
except serial.SerialException as e:
except serial.SerialException as ex:
raise ConfigEntryNotReady(
f"Unable to connect to device {serial_port}: {e}"
) from e
f"Unable to connect to device {serial_port}: {ex}"
) from ex

hass.data.setdefault(DOMAIN, {})[entry.entry_id] = entry.data

Expand Down

0 comments on commit 12e8cef

Please sign in to comment.