From 4c157f65ea875ebaf8b0db2176d75cf05c4bfb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hjelseth=20H=C3=B8yer?= Date: Wed, 30 Sep 2020 17:17:21 +0200 Subject: [PATCH] Tibber, combine two fetches into one fetch (#40787) --- homeassistant/components/tibber/sensor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/tibber/sensor.py b/homeassistant/components/tibber/sensor.py index 939c6d1597d..d2ddd645907 100644 --- a/homeassistant/components/tibber/sensor.py +++ b/homeassistant/components/tibber/sensor.py @@ -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"]