diff --git a/openhab2-exporter.py b/openhab2-exporter.py index ce355c1..8358537 100644 --- a/openhab2-exporter.py +++ b/openhab2-exporter.py @@ -36,7 +36,7 @@ def print_metrics(metrics, type, timestamp): name = metric['name'] value = metric['state'] - if value is None or value == 'NULL' or value == 'UNDEF': continue + if value is None or value == 'NULL' or value == 'UNDEF': continue if metric['type'].lower() == 'switch':