Skip to content

Commit 265429b

Browse files
authored
fix: Rename stop option to standby in select definitions (#188)
This change updates the option name from "stop" to "standby" across multiple register configuration files (a.yaml, e_v12.yaml, e_v3.yaml) for the Marstek Modbus integration. The modification affects the SELECT_DEFINITIONS section where the option value 0 is now labeled as "standby" instead of "stop", maintaining consistency with the translation files. see e.g.: https://github.com/ViperRNMC/marstek_venus_modbus/blob/c3026922ee0da25e9036bbdcbfbf029733a2a3c2/custom_components/marstek_modbus/translations/en.json#L542 Only the register file of the "D" was correct before: https://github.com/ViperRNMC/marstek_venus_modbus/blob/c3026922ee0da25e9036bbdcbfbf029733a2a3c2/custom_components/marstek_modbus/registers/d.yaml#L711 This will fix the wrong translation on the UI <img width="262" height="193" alt="image" src="https://github.com/user-attachments/assets/1c3f36d3-f4bc-4659-8aa8-35e749c48970" />
2 parents c302692 + 3307765 commit 265429b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

custom_components/marstek_modbus/registers/a.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ SELECT_DEFINITIONS:
13831383
enabled_by_default: false
13841384
scan_interval: high
13851385
options:
1386-
stop: 0
1386+
standby: 0
13871387
charge: 1
13881388
discharge: 2
13891389
schedule_1_days:

custom_components/marstek_modbus/registers/e_v12.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ SELECT_DEFINITIONS:
481481
enabled_by_default: false
482482
scan_interval: high
483483
options:
484-
stop: 0
484+
standby: 0
485485
charge: 1
486486
discharge: 2
487487
grid_standard:

custom_components/marstek_modbus/registers/e_v3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ SELECT_DEFINITIONS:
583583
enabled_by_default: false
584584
scan_interval: high
585585
options:
586-
stop: 0
586+
standby: 0
587587
charge: 1
588588
discharge: 2
589589
schedule_1_days:

0 commit comments

Comments
 (0)