Skip to content

Commit 38c7a04

Browse files
committed
return None if node_info is None
1 parent e9772f5 commit 38c7a04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,9 @@ async def update_node_details(
10411041
self, node_info: NodeInfoResponse | None = None
10421042
) -> bool:
10431043
"""Process new node info and return true if all fields are updated."""
1044+
if node_info is None:
1045+
return False
1046+
10441047
if node_info.relay_state is not None:
10451048
await self._relay_update_state(
10461049
node_info.relay_state, timestamp=node_info.timestamp

0 commit comments

Comments
 (0)