From 5ea43539b8029b4a96b10e576092b74be07d747c Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 26 Oct 2022 15:23:53 +0200 Subject: [PATCH] Adjust precipitation units (#1489) --- .../2022-10-25-new-precipitation-intensity-units.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 blog/2022-10-25-new-precipitation-intensity-units.md diff --git a/blog/2022-10-25-new-precipitation-intensity-units.md b/blog/2022-10-25-new-precipitation-intensity-units.md new file mode 100644 index 00000000..1067e7cb --- /dev/null +++ b/blog/2022-10-25-new-precipitation-intensity-units.md @@ -0,0 +1,13 @@ +--- +author: epenet +authorURL: https://github.com/epenet +title: "Add new precipitation intensity units" +--- + +As of Home Assistant Core 2022.11, the following constants are deprecated for volumetric flux (like precipitation intensity), replaced by `UnitOfVolumetricFlux` enum: + + - `PRECIPITATION_INCHES_PER_HOUR` replaced by `UnitOfVolumetricFlux.INCHES_PER_HOUR` + - `PRECIPITATION_MILLIMETERS_PER_HOUR` replaced by `UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR` + - `SPEED_INCHES_PER_DAY` replaced by `UnitOfVolumetricFlux.INCHES_PER_DAY` + - `SPEED_INCHES_PER_HOUR` replaced by `UnitOfVolumetricFlux.INCHES_PER_HOUR` + - `SPEED_MILLIMETERS_PER_DAY` replaced by `UnitOfVolumetricFlux.MILLIMETERS_PER_DAY`