From 5df7654dafabdb4a1ce1f6dc839d0ee770ad2c0d Mon Sep 17 00:00:00 2001 From: chpego <38792705+chpego@users.noreply.github.com> Date: Tue, 19 Sep 2023 10:31:05 +0200 Subject: [PATCH] fix current according to https://www.home-assistant.io/integrations/sensor/#device-class --- examples/rtl_433_mqtt_hass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rtl_433_mqtt_hass.py b/examples/rtl_433_mqtt_hass.py index 00f5e66c0..ab88825eb 100755 --- a/examples/rtl_433_mqtt_hass.py +++ b/examples/rtl_433_mqtt_hass.py @@ -526,7 +526,7 @@ "device_type": "sensor", "object_suffix": "A", "config": { - "device_class": "power", + "device_class": "current", "name": "Current", "unit_of_measurement": "A", "value_template": "{{ value|float }}",