From 4cf0f9b19711cca20b476ea999ce223c5c6c09b0 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Thu, 13 Oct 2022 00:06:23 +0200 Subject: [PATCH] Fix incorrect deprecation year for conversion utils (#80195) Fix incorrect depr year --- homeassistant/util/distance.py | 2 +- homeassistant/util/pressure.py | 2 +- homeassistant/util/speed.py | 2 +- homeassistant/util/temperature.py | 2 +- homeassistant/util/volume.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/util/distance.py b/homeassistant/util/distance.py index f5dbeaf42d5..719379d4c61 100644 --- a/homeassistant/util/distance.py +++ b/homeassistant/util/distance.py @@ -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, ) diff --git a/homeassistant/util/pressure.py b/homeassistant/util/pressure.py index 2a8e20ed025..d6d0c79741f 100644 --- a/homeassistant/util/pressure.py +++ b/homeassistant/util/pressure.py @@ -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, ) diff --git a/homeassistant/util/speed.py b/homeassistant/util/speed.py index 76ea873d7fe..f531e2d78f7 100644 --- a/homeassistant/util/speed.py +++ b/homeassistant/util/speed.py @@ -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, ) diff --git a/homeassistant/util/temperature.py b/homeassistant/util/temperature.py index 9173fbc5eee..0c2608eb4b5 100644 --- a/homeassistant/util/temperature.py +++ b/homeassistant/util/temperature.py @@ -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, ) diff --git a/homeassistant/util/volume.py b/homeassistant/util/volume.py index b468b9e6e0d..e21cebd2982 100644 --- a/homeassistant/util/volume.py +++ b/homeassistant/util/volume.py @@ -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, )