Skip to content

Commit

Permalink
Fix device class of energy sensors (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored Nov 25, 2023
1 parent e318b92 commit 83e3549
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/victron/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,21 @@
unit_of_measurement=UNIT_WATT_HOURS,
icon=ICON_POWER,
accuracy_decimals=0,
device_class=DEVICE_CLASS_POWER,
device_class=DEVICE_CLASS_ENERGY,
state_class=STATE_CLASS_TOTAL_INCREASING,
),
cv.Optional(CONF_YIELD_YESTERDAY): sensor.sensor_schema(
unit_of_measurement=UNIT_WATT_HOURS,
icon=ICON_POWER,
accuracy_decimals=0,
device_class=DEVICE_CLASS_POWER,
device_class=DEVICE_CLASS_ENERGY,
state_class=STATE_CLASS_TOTAL_INCREASING,
),
cv.Optional(CONF_YIELD_TODAY): sensor.sensor_schema(
unit_of_measurement=UNIT_WATT_HOURS,
icon=ICON_POWER,
accuracy_decimals=0,
device_class=DEVICE_CLASS_POWER,
device_class=DEVICE_CLASS_ENERGY,
state_class=STATE_CLASS_TOTAL_INCREASING,
),
cv.Optional(CONF_PANEL_VOLTAGE): sensor.sensor_schema(
Expand Down

0 comments on commit 83e3549

Please sign in to comment.