Skip to content

Commit cc9d586

Browse files
committed
Correct function-name
only a single nodetype update is stored
1 parent 76e64a0 commit cc9d586

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugwise_usb/network/cache.py

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

72-
async def update_nodetypes(self, mac: str, node_type: NodeType | None) -> None:
72+
async def update_nodetype(self, mac: str, node_type: NodeType | None) -> None:
7373
"""Save node information in cache."""
7474
if node_type is None:
7575
return

plugwise_usb/network/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ async def update_network_nodetype(self, mac: str, node_type: NodeType) -> None:
184184
"""Update NodeType inside registry and cache."""
185185
if self._network_cache is None or mac == "":
186186
return
187-
await self._network_cache.update_nodetypes(mac, node_type)
187+
await self._network_cache.update_nodetype(mac, node_type)
188188

189189
def update_network_registration(self, mac: str) -> bool:
190190
"""Add a mac to the network registration list return True if it was newly added."""

0 commit comments

Comments
 (0)