Reduce ovo_energy polling rate to be less aggressive (#51613)

* Reduce polling rate to be less aggressive

The current polling rate is too aggressive for the purpose, this commit reduces it to 12 hours to play nice with OVO.

* tweak polling to hourly
This commit is contained in:
blastoise186 2021-06-08 13:20:15 +01:00 committed by GitHub
parent 502939c430
commit fa42c676bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
name="sensor",
update_method=async_update_data,
# Polling interval. Will only be polled if there are subscribers.
update_interval=timedelta(seconds=300),
update_interval=timedelta(seconds=3600),
)
hass.data.setdefault(DOMAIN, {})