We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e8445 commit e90fa5dCopy full SHA for e90fa5d
plugwise_usb/network/registry.py
@@ -263,6 +263,15 @@ async def register_node(self, mac: str) -> int:
263
self._first_free_address += 1
264
return self._first_free_address - 1
265
266
+ async def register_rejoined_node(self, mac: str) -> int:
267
+ """Re-register rejoined node to Plugwise network and return network address."""
268
+ if not validate_mac(mac):
269
+ raise NodeError(f"MAC '{mac}' invalid")
270
+
271
+ self.update_network_registration(self._first_free_address, mac, None)
272
+ self._first_free_address += 1
273
+ return self._first_free_address - 1
274
275
async def unregister_node(self, mac: str) -> None:
276
"""Unregister node from current Plugwise network."""
277
if not validate_mac(mac):
0 commit comments