Skip to content

Commit

Permalink
Update plugin_solax.py
Browse files Browse the repository at this point in the history
Remove duplicate entities
  • Loading branch information
wills106 committed Dec 5, 2023
1 parent 76f53dc commit 1cef574
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions custom_components/solax_modbus/plugin_solax.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
register = 0x56,
command = 1,
allowedtypes = ALLDEFAULT,
entity_registry_enabled_default = False,
icon = "mdi:battery-alert-variant",
),
SolaxModbusButtonEntityDescription(
Expand All @@ -225,24 +226,24 @@ def value_function_remotecontrol_autorepeat_remaining(initval, descr, datadict):
allowedtypes = GEN3 | HYBRID | AC,
entity_category = EntityCategory.CONFIG,
),
SolaxModbusButtonEntityDescription(
name = "Unlock Inverter",
key = "unlock_inverter",
register = 0x00,
command = 2014,
allowedtypes = ALLDEFAULT,
entity_category = EntityCategory.CONFIG,
icon = "mdi:lock-open",
),
SolaxModbusButtonEntityDescription(
name = "Unlock Inverter - Advanced",
key = "unlock_inverter_advanced",
register = 0x00,
command = 6868,
allowedtypes = ALLDEFAULT,
entity_category = EntityCategory.CONFIG,
icon = "mdi:lock-open-plus",
),
#SolaxModbusButtonEntityDescription(
# name = "Unlock Inverter",
# key = "unlock_inverter",
# register = 0x00,
# command = 2014,
# allowedtypes = ALLDEFAULT,
# entity_category = EntityCategory.CONFIG,
# icon = "mdi:lock-open",
#),
#SolaxModbusButtonEntityDescription(
# name = "Unlock Inverter - Advanced",
# key = "unlock_inverter_advanced",
# register = 0x00,
# command = 6868,
# allowedtypes = ALLDEFAULT,
# entity_category = EntityCategory.CONFIG,
# icon = "mdi:lock-open-plus",
#),
# enable this block to test prevent_update
#SolaxModbusButtonEntityDescription( # block
# name = "Dummy test prevent update", # block
Expand Down

0 comments on commit 1cef574

Please sign in to comment.