Skip to content

Commit 3387acc

Browse files
committed
docstring fixes
1 parent f853846 commit 3387acc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise_usb/network/registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ async def update_network_nodetype(self, mac: str, node_type: NodeType) -> None:
165165
await self._network_cache.update_nodetypes(mac, node_type)
166166

167167
def update_network_registration(self, mac: str) -> bool:
168-
"""Add a mac to the network registration list return True new."""
168+
"""Add a mac to the network registration list return True if it was newly added."""
169169
if mac == "" or mac in self._registry:
170170
return False
171171
self._registry.append(mac)
172172
return True
173173

174174
async def remove_network_registration(self, mac: str) -> None:
175-
"""Remove a mac to the network registration list."""
175+
"""Remove a mac from the network registration list."""
176176
if mac in self._registry:
177177
self._registry.remove(mac)
178178
if self._network_cache is not None:
@@ -225,7 +225,7 @@ async def load_registrations_from_cache(self) -> None:
225225
await self._scan_completed_callback()
226226

227227
def update_node_registration(self, mac: str) -> bool:
228-
"""Register (re)joined node to Plugwise network and return network address."""
228+
"""Register (re)joined node to Plugwise network and return True if newly added."""
229229
return self.update_network_registration(mac)
230230

231231
def _stop_registration_task(self) -> None:

0 commit comments

Comments
 (0)