Skip to content

Commit 963a18f

Browse files
authored
Update plugin_growatt.py
Add hybrid and ignore readerror to VPP registers
1 parent 9ee9c31 commit 963a18f

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

custom_components/solax_modbus/plugin_growatt.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
811811
native_step=5,
812812
native_unit_of_measurement=UnitOfTime.MINUTES,
813813
allowedtypes=GEN3 | GEN4 | HYBRID,
814-
ignore_readerror=True
814+
ignore_readerror=True,
815815
entity_category=EntityCategory.CONFIG,
816816
entity_registry_enabled_default=True,
817817
icon="mdi:battery-clock",
@@ -826,7 +826,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
826826
native_step=5,
827827
native_unit_of_measurement=PERCENTAGE,
828828
allowedtypes=GEN3 | GEN4 | HYBRID,
829-
ignore_readerror=True
829+
ignore_readerror=True,
830830
entity_category=EntityCategory.CONFIG,
831831
entity_registry_enabled_default=True,
832832
icon="mdi:battery-sync",
@@ -1121,7 +1121,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
11211121
1: "Enabled",
11221122
},
11231123
allowedtypes=GEN3 | GEN4 | HYBRID,
1124-
ignore_readerror=True
1124+
ignore_readerror=True,
11251125
entity_category=EntityCategory.CONFIG,
11261126
entity_registry_enabled_default=True,
11271127
icon="mdi:dip-switch",
@@ -1135,7 +1135,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
11351135
1: "Enabled",
11361136
},
11371137
allowedtypes=GEN3 | GEN4 | HYBRID,
1138-
ignore_readerror=True
1138+
ignore_readerror=True,
11391139
entity_category=EntityCategory.CONFIG,
11401140
entity_registry_enabled_default=True,
11411141
icon="mdi:dip-switch",
@@ -1150,7 +1150,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
11501150
1: "Enabled",
11511151
},
11521152
allowedtypes=GEN3 | GEN4 | HYBRID,
1153-
ignore_readerror=True
1153+
ignore_readerror=True,
11541154
entity_category=EntityCategory.CONFIG,
11551155
entity_registry_enabled_default=True,
11561156
icon="mdi:dip-switch",
@@ -2314,7 +2314,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
23142314
1: "Enabled",
23152315
},
23162316
allowedtypes=GEN3 | GEN4 | HYBRID,
2317-
ignore_readerror=True
2317+
ignore_readerror=True,
23182318
internal=True,
23192319
),
23202320
GrowattModbusSensorEntityDescription(
@@ -2325,14 +2325,14 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
23252325
1: "Enabled",
23262326
},
23272327
allowedtypes=GEN3 | GEN4 | HYBRID,
2328-
ignore_readerror=True
2328+
ignore_readerror=True,
23292329
internal=True,
23302330
),
23312331
GrowattModbusSensorEntityDescription(
23322332
key="vpp_time",
23332333
register=30408,
23342334
allowedtypes=GEN3 | GEN4 | HYBRID,
2335-
ignore_readerror=True
2335+
ignore_readerror=True,
23362336
scale=1,
23372337
internal=True,
23382338
),
@@ -2341,7 +2341,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
23412341
register=30409,
23422342
register_data_type=REGISTER_S16,
23432343
allowedtypes=GEN3 | GEN4 | HYBRID,
2344-
ignore_readerror=True
2344+
ignore_readerror=True,
23452345
scale=1,
23462346
internal=True,
23472347
),
@@ -2354,7 +2354,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
23542354
1: "Enabled",
23552355
},
23562356
allowedtypes=GEN3 | GEN4 | HYBRID,
2357-
ignore_readerror=True
2357+
ignore_readerror=True,
23582358
internal=True,
23592359
),
23602360
GrowattModbusSensorEntityDescription(
@@ -2365,7 +2365,7 @@ def value_function_inverter_module(initval: int, descr: Any, datadict: dict[str,
23652365
register=31218,
23662366
register_type=REG_INPUT,
23672367
allowedtypes=GEN3 | GEN4 | HYBRID,
2368-
ignore_readerror=True
2368+
ignore_readerror=True,
23692369
entity_category=EntityCategory.DIAGNOSTIC,
23702370
entity_registry_enabled_default=True,
23712371
icon="mdi:information",

0 commit comments

Comments
 (0)