mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Add voltage device class to devolo Home Control (#47967)
This commit is contained in:
parent
0e368df023
commit
2230b03888
@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user