Correct native_pressure_unit for zamg weather (#74225)

This commit is contained in:
Erik Montnemery 2022-06-30 09:42:15 +02:00 committed by GitHub
parent 3a57f4363f
commit 407da8c4b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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