From 7216531d048b4da7636efa5c0e3c8d994ccf9125 Mon Sep 17 00:00:00 2001 From: Andrey Khrolenok Date: Fri, 17 May 2024 20:53:39 +0300 Subject: [PATCH] Fix units of pressure --- custom_components/gismeteo/const.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/gismeteo/const.py b/custom_components/gismeteo/const.py index a0af16e..87c0f0e 100644 --- a/custom_components/gismeteo/const.py +++ b/custom_components/gismeteo/const.py @@ -168,7 +168,7 @@ class ForecastMode(StrEnum): key=ATTR_FORECAST_PRESSURE, translation_key="pressure", device_class=SensorDeviceClass.PRESSURE, - native_unit_of_measurement=UnitOfPressure.HPA, + native_unit_of_measurement=UnitOfPressure.MMHG, ), SensorEntityDescription( key=ATTR_FORECAST_PRECIPITATION_AMOUNT, @@ -302,7 +302,7 @@ class ForecastMode(StrEnum): key=ATTR_FORECAST_PRESSURE, translation_key="pressure_forecast", device_class=SensorDeviceClass.PRESSURE, - native_unit_of_measurement=UnitOfPressure.HPA, + native_unit_of_measurement=UnitOfPressure.MMHG, ), SensorEntityDescription( key=ATTR_FORECAST_PRECIPITATION_AMOUNT,