Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion custom_components/solaredge_modbus_multi/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
re.IGNORECASE,
)

STATUS_VENDOR4_VERSION = "3.20.0"
STATUS_VENDOR4_VERSION = "3.20.0" # solaredge firmware version
INVERTED_POWER_VERSION = "2026.2.0" # home assistant core version


class ModbusExceptions:
Expand Down
5 changes: 3 additions & 2 deletions custom_components/solaredge_modbus_multi/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
DOMAIN,
ENERGY_VOLT_AMPERE_HOUR,
ENERGY_VOLT_AMPERE_REACTIVE_HOUR,
INVERTED_POWER_VERSION,
METER_EVENTS,
MMPPT_EVENTS,
RRCR_STATUS,
Expand Down Expand Up @@ -640,7 +641,7 @@ def name(self) -> str:

@property
def entity_registry_enabled_default(self) -> bool:
return AwesomeVersion(HA_VERSION) < AwesomeVersion("2026.2")
return AwesomeVersion(HA_VERSION) < AwesomeVersion(INVERTED_POWER_VERSION)

@property
def native_value(self):
Expand Down Expand Up @@ -2049,7 +2050,7 @@ def name(self) -> str:

@property
def entity_registry_enabled_default(self) -> bool:
return AwesomeVersion(HA_VERSION) < AwesomeVersion("2026.2")
return AwesomeVersion(HA_VERSION) < AwesomeVersion(INVERTED_POWER_VERSION)

@property
def native_value(self):
Expand Down
Loading