From 569cfdcf7c0106d676965f34ab9cc975c4cf2d26 Mon Sep 17 00:00:00 2001 From: hultenvp <61835400+hultenvp@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:57:53 +0200 Subject: [PATCH] 387 power volt ampere reactive deprecated in ha 202490 (#390) * introduce UnitOfReactivePower * Update hacs.json --- custom_components/solis/const.py | 8 ++++---- hacs.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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"] }