Tibber, change time for fetching prices (#41840)

This commit is contained in:
Daniel Hjelseth Høyer 2020-10-15 08:08:57 +02:00 committed by GitHub
parent 994ae09f69
commit 4146a90313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ class TibberSensorElPrice(TibberSensor):
if (
not self._tibber_home.last_data_timestamp
or (self._tibber_home.last_data_timestamp - now).total_seconds()
< 12 * 3600 + self._spread_load_constant
< 5 * 3600 + self._spread_load_constant
or not self._is_available
):
_LOGGER.debug("Asking for new data")