From ca2d9b7bf62ca3ddc9b65ffcaf5ef52b8cd5d781 Mon Sep 17 00:00:00 2001 From: Mark Atwood Date: Sun, 26 Nov 2023 05:21:00 -0800 Subject: [PATCH] Change rtl_433_mqtt_hass.py to use moisture class (#2726) Moisture should be "moisture" class, not "humidity" class. --- examples/rtl_433_mqtt_hass.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rtl_433_mqtt_hass.py b/examples/rtl_433_mqtt_hass.py index cd384ddc..e42d25c8 100755 --- a/examples/rtl_433_mqtt_hass.py +++ b/examples/rtl_433_mqtt_hass.py @@ -239,9 +239,9 @@ mappings = { "moisture": { "device_type": "sensor", - "object_suffix": "H", + "object_suffix": "M", "config": { - "device_class": "humidity", + "device_class": "moisture", "name": "Moisture", "unit_of_measurement": "%", "value_template": "{{ value|float }}",