summaryrefslogtreecommitdiff
path: root/src/temphum_nodes_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/temphum_nodes_util.py')
-rwxr-xr-xsrc/temphum_nodes_util.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/temphum_nodes_util.py b/src/temphum_nodes_util.py
deleted file mode 100755
index c700ca8..0000000
--- a/src/temphum_nodes_util.py
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env python3
-from home.mqtt.temphum import MqttTempHumNodes
-
-if __name__ == '__main__':
- max_name_len = 0
- for node in MqttTempHumNodes:
- if len(node.name) > max_name_len:
- max_name_len = len(node.name)
-
- values = []
- for node in MqttTempHumNodes:
- hash = node.hash()
- if hash in values:
- raise ValueError(f'collision detected: {hash}')
- values.append(values)
- print(' '*(max_name_len-len(node.name)), end='')
- print(f'{node.name}: {hash}')