mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-16 13:56:29 +00:00
Create blog post for clean up of deprecated unit conversion functions (#1942)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
8b09b1a575
commit
f8b02bbd34
23
blog/2023-10-03-conversion-functions-cleanup.md
Normal file
23
blog/2023-10-03-conversion-functions-cleanup.md
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
author: davet2001
|
||||
authorURL: https://github.com/davet2001
|
||||
title: "Removal of deprecated unit conversion utilities"
|
||||
---
|
||||
|
||||
The following utilities were [deprecated in Home Assistant 2022.10](/blog/2022/09/28/deprecate-conversion-utilities)) and have now been removed as of 2023.11:
|
||||
|
||||
- `homeassistant/util/distance`
|
||||
- `homeassistant/util/pressure`
|
||||
- `homeassistant/util/speed`
|
||||
- `homeassistant/util/temperature`
|
||||
- `homeassistant/util/volume`
|
||||
|
||||
Please use the corresponding static classes from `homeassistant/util/unit_conversion`:
|
||||
|
||||
- `DistanceConverter`
|
||||
- `PressureConverter`
|
||||
- `SpeedConverter`
|
||||
- `TemperatureConverter`
|
||||
- `VolumeConverter`
|
||||
|
||||
The deprecated functions were already unused within the built-in Home Assistant integrations, and community integrations using them should have seen warnings for the past 12 months. Attempting to import the original utilities will now result in an error.
|
Loading…
x
Reference in New Issue
Block a user