Skip to content

Commit ba3e76c

Browse files
committed
Add warning log when node doesn't exists
1 parent 6d30990 commit ba3e76c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugwise/stick.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ def _remove_node(self, mac):
415415
"""Remove node from list of controllable nodes."""
416416
if mac in self._plugwise_nodes:
417417
del self._plugwise_nodes[mac]
418+
else:
419+
_LOGGER.warning("Node %s does not exists, unable to remove node.", mac)
418420

419421
def message_processor(self, message: NodeResponse):
420422
"""Received message from Plugwise network."""

0 commit comments

Comments
 (0)