Fix met_eireann default wind speed unit (#77229)

Update default units
This commit is contained in:
donoghdb 2022-08-24 07:18:10 +01:00 committed by Paulus Schoutsen
parent 3efc5bb0be
commit 88451e3002

View File

@ -13,7 +13,7 @@ from homeassistant.const import (
CONF_NAME, CONF_NAME,
LENGTH_MILLIMETERS, LENGTH_MILLIMETERS,
PRESSURE_HPA, PRESSURE_HPA,
SPEED_METERS_PER_SECOND, SPEED_KILOMETERS_PER_HOUR,
TEMP_CELSIUS, TEMP_CELSIUS,
) )
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
@ -58,7 +58,7 @@ class MetEireannWeather(CoordinatorEntity, WeatherEntity):
_attr_native_precipitation_unit = LENGTH_MILLIMETERS _attr_native_precipitation_unit = LENGTH_MILLIMETERS
_attr_native_pressure_unit = PRESSURE_HPA _attr_native_pressure_unit = PRESSURE_HPA
_attr_native_temperature_unit = TEMP_CELSIUS _attr_native_temperature_unit = TEMP_CELSIUS
_attr_native_wind_speed_unit = SPEED_METERS_PER_SECOND _attr_native_wind_speed_unit = SPEED_KILOMETERS_PER_HOUR
def __init__(self, coordinator, config, hourly): def __init__(self, coordinator, config, hourly):
"""Initialise the platform with a data instance and site.""" """Initialise the platform with a data instance and site."""