Skip to content

Commit 32be475

Browse files
committed
Also block adding Circle+ to nodetype-cache
1 parent cc9d586 commit 32be475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/network/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def restore_cache(self) -> None:
7171

7272
async def update_nodetype(self, mac: str, node_type: NodeType | None) -> None:
7373
"""Save node information in cache."""
74-
if node_type is None:
74+
if node_type in (None, NodeType.CIRCLE_PLUS):
7575
return
7676
if (current_node_type := self._nodetypes.get(mac)) is not None:
7777
if current_node_type == node_type:

0 commit comments

Comments
 (0)