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

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

  - `UnitOfPrecipitationDepth` enumerator replaces `PRECIPITATION_***` constants
