From 407da8c4b89b6ddd858fb0dc24719599f5650eca Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 30 Jun 2022 09:42:15 +0200 Subject: [PATCH] Correct native_pressure_unit for zamg weather (#74225) --- homeassistant/components/zamg/weather.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/zamg/weather.py b/homeassistant/components/zamg/weather.py index 2bf4a5b39f6..6910955fcf7 100644 --- a/homeassistant/components/zamg/weather.py +++ b/homeassistant/components/zamg/weather.py @@ -18,7 +18,7 @@ from homeassistant.const import ( CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, - LENGTH_MILLIMETERS, + PRESSURE_HPA, SPEED_KILOMETERS_PER_HOUR, TEMP_CELSIUS, ) @@ -87,9 +87,7 @@ def setup_platform( class ZamgWeather(WeatherEntity): """Representation of a weather condition.""" - _attr_native_pressure_unit = ( - LENGTH_MILLIMETERS # API reports l/m², equivalent to mm - ) + _attr_native_pressure_unit = PRESSURE_HPA _attr_native_temperature_unit = TEMP_CELSIUS _attr_native_wind_speed_unit = SPEED_KILOMETERS_PER_HOUR