From 7c662bd015fb5d0611b02fcf9b6a5a89d8e6350e Mon Sep 17 00:00:00 2001 From: dnutiu Date: Thu, 8 Feb 2024 22:59:09 +0200 Subject: [PATCH] fix duplicated metrics --- app/sensors/pms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/sensors/pms.py b/app/sensors/pms.py index e87b3a8..9db2441 100644 --- a/app/sensors/pms.py +++ b/app/sensors/pms.py @@ -27,10 +27,10 @@ class Pms5003Sensor(Accessory): "pms5003_pm_ug_per_m3_1", "The PM1.0 ug/m3 (ultrafine particles)." ) self._pms5003_pm_ug_per_m3_2 = Gauge( - "pms5003_pm_ug_per_m3_1", "PM2.5 ug/m3 (combustion particles, organic compounds, metals)." + "pms5003_pm_ug_per_m3_2", "PM2.5 ug/m3 (combustion particles, organic compounds, metals)." ) self._pms5003_pm_ug_per_m3_10 = Gauge( - "pms5003_pm_ug_per_m3_1", "PM10 ug/m3 (dust, pollen, mould spores)" + "pms5003_pm_ug_per_m3_10", "PM10 ug/m3 (dust, pollen, mould spores)" ) @Accessory.run_at_interval(120)