Skip to content

Commit f330617

Browse files
authored
add GEN6 to inverter_power
dont know why we have almost 2 identical declarations and do not merge them into 1
1 parent 454f847 commit f330617

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

custom_components/solax_modbus/plugin_solax.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4284,7 +4284,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
42844284
rounding=1,
42854285
allowedtypes=AC | HYBRID,
42864286
),
4287-
SolaXModbusSensorEntityDescription(
4287+
SolaXModbusSensorEntityDescription( # unclear why we do not merge with next decl
42884288
name="Inverter Power",
42894289
key="inverter_power",
42904290
native_unit_of_measurement=UnitOfPower.WATT,
@@ -4293,9 +4293,9 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
42934293
register=0x2,
42944294
register_type=REG_INPUT,
42954295
unit=REGISTER_S16,
4296-
allowedtypes=AC | HYBRID | GEN2 | GEN3 | GEN4,
4296+
allowedtypes=AC | HYBRID | GEN2 | GEN3 | GEN4 | GEN6,
42974297
),
4298-
SolaXModbusSensorEntityDescription(
4298+
SolaXModbusSensorEntityDescription( # unclear why we do not merge with previous decl
42994299
name="Inverter Power",
43004300
key="inverter_power",
43014301
native_unit_of_measurement=UnitOfPower.WATT,
@@ -4304,7 +4304,7 @@ def value_function_battery_voltage_cell_difference(initval, descr, datadict):
43044304
register=0x2,
43054305
register_type=REG_INPUT,
43064306
unit=REGISTER_S16,
4307-
allowedtypes=AC | HYBRID | GEN5 | X1,
4307+
allowedtypes=AC | HYBRID | GEN5 | GEN6 | X1,
43084308
),
43094309
SolaXModbusSensorEntityDescription(
43104310
name="PV Voltage 1",

0 commit comments

Comments
 (0)