Fix incorrect deprecation year for conversion utils (#80195)

Fix incorrect depr year
pull/80296/head
G Johansson 2022-10-13 00:06:23 +02:00 committed by GitHub
parent f5868f00a0
commit 4cf0f9b197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ def convert(value: float, from_unit: str, to_unit: str) -> float:
"""Convert one unit of measurement to another."""
report(
"uses distance utility. This is deprecated since 2022.10 and will "
"stop working in Home Assistant 2022.4, it should be updated to use "
"stop working in Home Assistant 2023.4, it should be updated to use "
"unit_conversion.DistanceConverter instead",
error_if_core=False,
)

View File

@ -27,7 +27,7 @@ def convert(value: float, from_unit: str, to_unit: str) -> float:
"""Convert one unit of measurement to another."""
report(
"uses pressure utility. This is deprecated since 2022.10 and will "
"stop working in Home Assistant 2022.4, it should be updated to use "
"stop working in Home Assistant 2023.4, it should be updated to use "
"unit_conversion.PressureConverter instead",
error_if_core=False,
)

View File

@ -34,7 +34,7 @@ def convert(value: float, from_unit: str, to_unit: str) -> float:
"""Convert one unit of measurement to another."""
report(
"uses speed utility. This is deprecated since 2022.10 and will "
"stop working in Home Assistant 2022.4, it should be updated to use "
"stop working in Home Assistant 2023.4, it should be updated to use "
"unit_conversion.SpeedConverter instead",
error_if_core=False,
)

View File

@ -39,7 +39,7 @@ def convert(
"""Convert a temperature from one unit to another."""
report(
"uses temperature utility. This is deprecated since 2022.10 and will "
"stop working in Home Assistant 2022.4, it should be updated to use "
"stop working in Home Assistant 2023.4, it should be updated to use "
"unit_conversion.TemperatureConverter instead",
error_if_core=False,
)

View File

@ -42,7 +42,7 @@ def convert(volume: float, from_unit: str, to_unit: str) -> float:
"""Convert a volume from one unit to another."""
report(
"uses volume utility. This is deprecated since 2022.10 and will "
"stop working in Home Assistant 2022.4, it should be updated to use "
"stop working in Home Assistant 2023.4, it should be updated to use "
"unit_conversion.VolumeConverter instead",
error_if_core=False,
)