mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
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:
parent
d1acb0326c
commit
93af3c57ff
@ -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()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user