Fix incorrect power device class on energy sensors in Smappee (#54994)

This commit is contained in:
Franck Nijhof
2021-08-22 04:17:36 +02:00
committed by GitHub
parent 243c52e210
commit afc95becd0

View File

@@ -89,7 +89,7 @@ SOLAR_SENSORS = {
None,
ENERGY_WATT_HOUR,
"solar_today",
DEVICE_CLASS_POWER,
DEVICE_CLASS_ENERGY,
False, # cloud only
],
"solar_current_hour": [
@@ -97,7 +97,7 @@ SOLAR_SENSORS = {
None,
ENERGY_WATT_HOUR,
"solar_current_hour",
DEVICE_CLASS_POWER,
DEVICE_CLASS_ENERGY,
False, # cloud only
],
}