diff --git a/custom_components/solis/const.py b/custom_components/solis/const.py index 055f0b0..ccb9f38 100644 --- a/custom_components/solis/const.py +++ b/custom_components/solis/const.py @@ -14,7 +14,7 @@ UnitOfElectricPotential, UnitOfTemperature, UnitOfFrequency, - POWER_VOLT_AMPERE_REACTIVE, + UnitOfReactivePower, PERCENTAGE) from .ginlong_const import * @@ -636,7 +636,7 @@ ], 'gridreactivephase1power': [ 'Grid Phase1 Reactive Power', - POWER_VOLT_AMPERE_REACTIVE, + UnitOfReactivePower.VOLT_AMPERE_REACTIVE, 'mdi:home-import-outline', None, SensorStateClass.MEASUREMENT, @@ -644,7 +644,7 @@ ], 'gridreactivephase2power': [ 'Grid Phase2 Reactive Power', - POWER_VOLT_AMPERE_REACTIVE, + UnitOfReactivePower.VOLT_AMPERE_REACTIVE, 'mdi:home-import-outline', None, SensorStateClass.MEASUREMENT, @@ -652,7 +652,7 @@ ], 'gridreactivephase3power': [ 'Grid Phase3 Reactive Power', - POWER_VOLT_AMPERE_REACTIVE, + UnitOfReactivePower.VOLT_AMPERE_REACTIVE, 'mdi:home-import-outline', None, SensorStateClass.MEASUREMENT, diff --git a/hacs.json b/hacs.json index 0977d99..40e8f9e 100644 --- a/hacs.json +++ b/hacs.json @@ -2,6 +2,6 @@ "name": "SolisCloud portal integration", "content_in_root": false, "render_readme": false, - "homeassistant": "2021.9", + "homeassistant": "2024.9.0", "domains": ["sensor"] }