mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Correct native_pressure_unit for zamg weather (#74225)
This commit is contained in:
@@ -18,7 +18,7 @@ from homeassistant.const import (
|
|||||||
CONF_LATITUDE,
|
CONF_LATITUDE,
|
||||||
CONF_LONGITUDE,
|
CONF_LONGITUDE,
|
||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
LENGTH_MILLIMETERS,
|
PRESSURE_HPA,
|
||||||
SPEED_KILOMETERS_PER_HOUR,
|
SPEED_KILOMETERS_PER_HOUR,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
)
|
)
|
||||||
@@ -87,9 +87,7 @@ def setup_platform(
|
|||||||
class ZamgWeather(WeatherEntity):
|
class ZamgWeather(WeatherEntity):
|
||||||
"""Representation of a weather condition."""
|
"""Representation of a weather condition."""
|
||||||
|
|
||||||
_attr_native_pressure_unit = (
|
_attr_native_pressure_unit = PRESSURE_HPA
|
||||||
LENGTH_MILLIMETERS # API reports l/m², equivalent to mm
|
|
||||||
)
|
|
||||||
_attr_native_temperature_unit = TEMP_CELSIUS
|
_attr_native_temperature_unit = TEMP_CELSIUS
|
||||||
_attr_native_wind_speed_unit = SPEED_KILOMETERS_PER_HOUR
|
_attr_native_wind_speed_unit = SPEED_KILOMETERS_PER_HOUR
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user