Skip to content

Commit 99a940e

Browse files
committed
Pylint fix
1 parent a6e75c0 commit 99a940e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise_usb/network/registry.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ async def register_node(self, mac: str) -> int:
252252

253253
request = NodeAddRequest(self._send_to_controller, bytes(mac, UTF8), True)
254254
try:
255-
response = await request.send()
256-
if response is None:
255+
response := await request.send()
256+
if response is None: # pylint: disable=consider-using-assignment-expr
257257
raise NodeError(f"Failed to register node {mac}, no response received")
258258
except MessageError as exc:
259259
raise MessageError(f"Failed to register Node ({mac}) due to {exc}") from exc

0 commit comments

Comments
 (0)