Skip to content

Commit

Permalink
Fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu committed Feb 29, 2024
1 parent 5be8e9b commit 3710e63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions aioshelly/block_device/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ async def initialize(self, async_init: bool = False) -> None:
if self._initializing:
raise RuntimeError("Already initializing")

# GEN1 cannot be configured behind a range extender as CoAP port cannot be natted
if self.options.port != 80:
# GEN1 cannot be configured behind a range extender as CoAP port cannot be
# natted
if self.options.port != 80: # noqa: PLR2004
raise CustomPortNotSupported

self._initializing = True
Expand Down
3 changes: 2 additions & 1 deletion tools/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ async def test_single(options: ConnectionOptions, init: bool, gen: int | None) -
return
except DeviceConnectionError as err:
print(
f"Error connecting to {options.ip_address}:{options.port}, error: {err!r}"
f"Error connecting to {options.ip_address}:{options.port}, "
f"error: {err!r}"
)
return
except MacAddressMismatchError as err:
Expand Down

0 comments on commit 3710e63

Please sign in to comment.