Fix incorrect deprecation year for conversion utils (#80195)
Fix incorrect depr yearpull/80296/head
parent
f5868f00a0
commit
4cf0f9b197
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue