Skip to content

Commit

Permalink
Fix units of pressure
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed May 17, 2024
1 parent 80c623b commit 7216531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/gismeteo/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7216531

Please sign in to comment.