Avoid calling yr update every second for a minute ones every hour (#16731)

* Avoid calling yr update every second for a minute one every hour

* style
This commit is contained in:
Daniel Høyer Iversen 2018-09-20 11:31:05 +02:00 committed by Paulus Schoutsen
parent d1acb0326c
commit 93af3c57ff

View File

@ -91,7 +91,8 @@ async def async_setup_platform(hass, config, async_add_entities,
async_add_entities(dev)
weather = YrData(hass, coordinates, forecast, dev)
async_track_utc_time_change(hass, weather.updating_devices, minute=31)
async_track_utc_time_change(hass, weather.updating_devices,
minute=31, second=0)
await weather.fetching_data()