mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Correct native_pressure_unit for zamg weather (#74225)
This commit is contained in:
parent
3a57f4363f
commit
407da8c4b8
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user