Skip to content

Commit

Permalink
Merge pull request #1156 from prehor/fix-remaining-battery-capacity-d…
Browse files Browse the repository at this point in the history
…evice-class

Fix Remaining Battery Capacity device class
  • Loading branch information
wills106 authored Dec 7, 2024
2 parents 77075cb + 48a9397 commit 42edb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solax_modbus/plugin_solax.py
Original file line number Diff line number Diff line change
Expand Up @@ -5243,7 +5243,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
name = "Remaining Battery Capacity",
key = "remaining_battery_capacity",
native_unit_of_measurement = UnitOfEnergy.WATT_HOUR,
device_class = SensorDeviceClass.ENERGY,
device_class = SensorDeviceClass.ENERGY_STORAGE,
state_class = SensorStateClass.MEASUREMENT,
entity_registry_enabled_default = False,
register = 0x118,
Expand Down

0 comments on commit 42edb8d

Please sign in to comment.