Skip to content

Commit f853846

Browse files
committed
call list attribute as list instead of function
1 parent 02ec48b commit f853846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/network/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ async def unregister_node(self, mac: str) -> None:
252252
if not validate_mac(mac):
253253
raise NodeError(f"MAC {mac} invalid")
254254

255-
if mac not in self._registry():
255+
if mac not in self._registry:
256256
raise NodeError(f"No existing Node ({mac}) found to unregister")
257257

258258
request = NodeRemoveRequest(self._send_to_controller, self._mac_nc, mac)

0 commit comments

Comments
 (0)