Update metrics.py
Docker Push / build (push) Successful in 40s Details

This commit is contained in:
nick 2023-07-20 13:29:51 +00:00
parent 70e44a432c
commit 9ac6a3f7da
1 changed files with 1 additions and 1 deletions

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: