Update metrics.py
All checks were successful
Docker Push / build (push) Successful in 40s

This commit is contained in:
2023-07-20 13:29:51 +00:00
parent 70e44a432c
commit 9ac6a3f7da

View File

@@ -22,7 +22,7 @@ class TasmotaCollector(object):
response = self.fetch()
for key in response:
metric_name = self.device_name + "_" + key.lower().replace(" ", "_")
metric_name = "tasmota_" + key.lower().replace(" ", "_")
metric = response[key].split()[0]
unit = None
if len(response[key].split()) > 1: