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 a430110 commit c23bd72Copy full SHA for c23bd72
plugwise_usb/network/__init__.py
@@ -166,11 +166,12 @@ async def unregister_node(self, mac: str) -> None:
166
"""Unregister node from current Plugwise network."""
167
try:
168
await self._register.unregister_node(mac)
169
- await self._nodes[mac].unload()
170
- self._nodes.pop(mac)
171
except (KeyError, NodeError) as exc:
172
raise MessageError("Mac not registered, already deleted?") from exc
173
+ await self._nodes[mac].unload()
+ self._nodes.pop(mac)
174
+
175
# region - Handle stick connect/disconnect events
176
def _subscribe_to_protocol_events(self) -> None:
177
"""Subscribe to events from protocol."""
0 commit comments