Skip to content

Commit 275d65e

Browse files
committed
Pylint fix
1 parent a6e75c0 commit 275d65e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugwise_usb/network/registry.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ 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+
if (response := await request.send()) is None:
257256
raise NodeError(f"Failed to register node {mac}, no response received")
258257
except MessageError as exc:
259258
raise MessageError(f"Failed to register Node ({mac}) due to {exc}") from exc

0 commit comments

Comments
 (0)