Remove throttle from update (#26216)

This commit is contained in:
michaeldavie 2019-08-27 10:00:54 -04:00 committed by Fabian Affolter
parent 9dc40197e9
commit d9ae63e239

View File

@ -20,7 +20,6 @@ from homeassistant.components.weather import (
WeatherEntity,
)
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS
from homeassistant.util import Throttle
import homeassistant.util.dt as dt
import homeassistant.helpers.config_validation as cv
@ -30,8 +29,6 @@ CONF_FORECAST = "forecast"
CONF_ATTRIBUTION = "Data provided by Environment Canada"
CONF_STATION = "station"
MIN_TIME_BETWEEN_UPDATES = datetime.timedelta(minutes=10)
def validate_station(station):
"""Check that the station ID is well-formed."""
@ -171,7 +168,6 @@ class ECWeather(WeatherEntity):
"""Return the forecast array."""
return get_forecast(self.ec_data, self.forecast_type)
@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):
"""Get the latest data from Environment Canada."""
self.ec_data.update()