diff --git a/aioshelly/block_device/device.py b/aioshelly/block_device/device.py index 91abb6ed..b093859c 100644 --- a/aioshelly/block_device/device.py +++ b/aioshelly/block_device/device.py @@ -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 diff --git a/tools/example.py b/tools/example.py index c685c83d..d8db9db8 100644 --- a/tools/example.py +++ b/tools/example.py @@ -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: