From 736bc649835a44d4a9aa85b159b0b9dd19b40190 Mon Sep 17 00:00:00 2001 From: Damian DASKALOV Date: Sat, 19 Jan 2019 13:14:07 +0100 Subject: [PATCH] Fixed AttributeError raised while accessing node --- src-api/openzwave/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-api/openzwave/network.py b/src-api/openzwave/network.py index 91fa48b9..35221293 100755 --- a/src-api/openzwave/network.py +++ b/src-api/openzwave/network.py @@ -857,7 +857,7 @@ def sleeping_nodes_count(self): """ result = 0 - for node in self.nodes: + for node in self.nodes.values(): if node.is_sleeping: result += 1 return result