mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Tibber, combine two fetches into one fetch (#40787)
This commit is contained in:
parent
01a0ffa636
commit
4c157f65ea
@ -157,8 +157,7 @@ class TibberSensorElPrice(TibberSensor):
|
||||
@Throttle(MIN_TIME_BETWEEN_UPDATES)
|
||||
async def _fetch_data(self):
|
||||
try:
|
||||
await self._tibber_home.update_info()
|
||||
await self._tibber_home.update_price_info()
|
||||
await self._tibber_home.update_info_and_price_info()
|
||||
except (asyncio.TimeoutError, aiohttp.ClientError):
|
||||
return
|
||||
data = self._tibber_home.info["viewer"]["home"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user