Skip to content

Commit c7a6690

Browse files
Merge pull request #110 from WillCodeForCats/battery
Battery state of energy device class
2 parents 0e66974 + 90b4580 commit c7a6690

File tree

1 file changed

+1
-1
lines changed
  • custom_components/solaredge_modbus_multi

1 file changed

+1
-1
lines changed

custom_components/solaredge_modbus_multi/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,9 +1854,9 @@ def native_value(self):
18541854

18551855

18561856
class SolarEdgeBatterySOE(SolarEdgeSensorBase):
1857+
device_class = SensorDeviceClass.BATTERY
18571858
state_class = SensorStateClass.MEASUREMENT
18581859
native_unit_of_measurement = PERCENTAGE
1859-
entity_category = EntityCategory.DIAGNOSTIC
18601860

18611861
def __init__(self, platform, config_entry, coordinator):
18621862
super().__init__(platform, config_entry, coordinator)

0 commit comments

Comments
 (0)