summaryrefslogtreecommitdiff
path: root/src/temphum_nodes_util.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-22 07:11:21 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-22 07:11:21 +0300
commit2f1c00bed429abb24d2b9f45d3581461b17aa277 (patch)
tree9aa31025002ad84ff20ce6ce2790f8c611271e2e /src/temphum_nodes_util.py
parent893e21cc83ee1ecf236a005f1bf4893448e9b3ea (diff)
Diffstat (limited to 'src/temphum_nodes_util.py')
-rwxr-xr-xsrc/temphum_nodes_util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/temphum_nodes_util.py b/src/temphum_nodes_util.py
index c700ca8..ebeb349 100755
--- a/src/temphum_nodes_util.py
+++ b/src/temphum_nodes_util.py
@@ -1,14 +1,14 @@
#!/usr/bin/env python3
-from home.mqtt.temphum import MqttTempHumNodes
+from home.temphum import TempHumNodes
if __name__ == '__main__':
max_name_len = 0
- for node in MqttTempHumNodes:
+ for node in TempHumNodes:
if len(node.name) > max_name_len:
max_name_len = len(node.name)
values = []
- for node in MqttTempHumNodes:
+ for node in TempHumNodes:
hash = node.hash()
if hash in values:
raise ValueError(f'collision detected: {hash}')