---
author: epenet
authorURL: https://github.com/epenet
title: "Add  more unit enumerators"
---

As of Home Assistant Core 2023.1, the following unit constants are deprecated and replaced 
by a corresponding enum:

  - `UnitOfApparentPower` enumerator replaces `POWER_VOLT_AMPERE` constant
  - `UnitOfDataRate` enumerator replaces `DATA_RATE_***` constants
  - `UnitOfElectricCurrent` enumerator replaces `ELECTRIC_CURRENT_***` constants
  - `UnitOfElectricPotential` enumerator replaces `ELECTRIC_POTENTIAL_***` constants
  - `UnitOfFrequency` enumerator replaces `FREQUENCY_***` constants
  - `UnitOfInformation` enumerator replaces `DATA_***` constants
  - `UnitOfIrradiance` enumerator replaces `IRRADIATION_***` constants
  - `UnitOfSoundPressure` enumerator replaces `SOUND_PRESSURE_***` constants
  - `UnitOfTime` enumerator replaces `TIME_***` constants
  - `UnitOfVolumeFlowRate` enumerator replaces `VOLUME_FLOW_RATE_***` constants
