Skip to content

Commit 098d2b2

Browse files
committed
Correct function-name
only a single nodetype update is stored
1 parent 80721f6 commit 098d2b2

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
@@ -72,7 +72,7 @@ async def restore_cache(self) -> None:
7272
str(node_type),
7373
)
7474

75-
async def update_nodetypes(self, mac: str, node_type: NodeType | None) -> None:
75+
async def update_nodetype(self, mac: str, node_type: NodeType | None) -> None:
7676
"""Save node information in cache."""
7777
if node_type is None:
7878
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)