From 2230b03888a3d71d280c983f49d12e6a875088a5 Mon Sep 17 00:00:00 2001 From: Guido Schmitz Date: Tue, 16 Mar 2021 08:13:03 +0100 Subject: [PATCH] Add voltage device class to devolo Home Control (#47967) --- homeassistant/components/devolo_home_control/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/devolo_home_control/sensor.py b/homeassistant/components/devolo_home_control/sensor.py index e78b4eabeac..9fa3bdcf809 100644 --- a/homeassistant/components/devolo_home_control/sensor.py +++ b/homeassistant/components/devolo_home_control/sensor.py @@ -5,6 +5,7 @@ from homeassistant.components.sensor import ( DEVICE_CLASS_ILLUMINANCE, DEVICE_CLASS_POWER, DEVICE_CLASS_TEMPERATURE, + DEVICE_CLASS_VOLTAGE, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import PERCENTAGE @@ -20,6 +21,7 @@ DEVICE_CLASS_MAPPING = { "humidity": DEVICE_CLASS_HUMIDITY, "current": DEVICE_CLASS_POWER, "total": DEVICE_CLASS_POWER, + "voltage": DEVICE_CLASS_VOLTAGE, }