Skip to content

Commit

Permalink
Merge pull request #152 from vincentwolsink/update_constant
Browse files Browse the repository at this point in the history
Update deprecated constant
  • Loading branch information
vincentwolsink authored Sep 12, 2024
2 parents 8c5f4a1 + fef0f11 commit 3951ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/enphase_envoy/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
UnitOfElectricPotential,
UnitOfElectricCurrent,
UnitOfTemperature,
POWER_VOLT_AMPERE_REACTIVE,
UnitOfReactivePower,
EntityCategory,
)

Expand Down Expand Up @@ -350,7 +350,7 @@ def get_model_name(model, hardware_id):
SensorEntityDescription(
key=f"reactive_power_{phase}",
name=f"Reactive Power {phase.upper()}",
native_unit_of_measurement=POWER_VOLT_AMPERE_REACTIVE,
native_unit_of_measurement=UnitOfReactivePower.VOLT_AMPERE_REACTIVE,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.REACTIVE_POWER,
),
Expand Down

0 comments on commit 3951ccd

Please sign in to comment.