mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Remove throttle from update (#26216)
This commit is contained in:
parent
9dc40197e9
commit
d9ae63e239
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user