Correction of prices update time in Tibber integration (with CLA now) (#131861)

correction of prices update time
This commit is contained in:
rd-blue 2024-11-28 19:58:38 +01:00 committed by GitHub
parent 0b36a6d7f3
commit 8feb6c7e06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -397,7 +397,7 @@ class TibberSensorElPrice(TibberSensor):
if (
not self._tibber_home.last_data_timestamp
or (self._tibber_home.last_data_timestamp - now).total_seconds()
< 11 * 3600 + self._spread_load_constant
< 10 * 3600 - self._spread_load_constant
or not self.available
):
_LOGGER.debug("Asking for new data")