1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Allow cm in precipitation units (#83360)

* Use new device class in zamg

* Adjust docstring

* Undo component changes
This commit is contained in:
epenet
2022-12-06 10:34:58 +01:00
committed by GitHub
parent 55d1474e4a
commit b8613ec09d
3 changed files with 7 additions and 4 deletions

View File

@@ -817,6 +817,9 @@ class UnitOfPrecipitationDepth(StrEnum):
MILLIMETERS = "mm"
"""Derived from mm³/mm²"""
CENTIMETERS = "cm"
"""Derived from cm³/cm²"""
# Precipitation units
PRECIPITATION_INCHES: Final = "in"