Skip to content

Commit 4f3d39d

Browse files
authored
Update plugin_growatt.py
1 parent 35f4c89 commit 4f3d39d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

custom_components/solax_modbus/plugin_growatt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4697,6 +4697,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
46974697
key="battery_soc",
46984698
native_unit_of_measurement=PERCENTAGE,
46994699
device_class=SensorDeviceClass.BATTERY,
4700+
state_class=SensorStateClass.MEASUREMENT,
47004701
register=1014,
47014702
register_type=REG_INPUT,
47024703
allowedtypes=GEN3,
@@ -6335,6 +6336,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
63356336
key="battery_soc",
63366337
native_unit_of_measurement=PERCENTAGE,
63376338
device_class=SensorDeviceClass.BATTERY,
6339+
state_class=SensorStateClass.MEASUREMENT,
63386340
register=3171,
63396341
register_type=REG_INPUT,
63406342
allowedtypes=GEN4 | HYBRID,
@@ -9144,6 +9146,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
91449146
key="battery_soc",
91459147
native_unit_of_measurement=PERCENTAGE,
91469148
device_class=SensorDeviceClass.BATTERY,
9149+
state_class=SensorStateClass.MEASUREMENT,
91479150
register=18,
91489151
register_type=REG_INPUT,
91499152
allowedtypes=SPF,

0 commit comments

Comments
 (0)