From 306d4bbf746ee92f8366abaed93c288825a7d845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hjelseth=20H=C3=B8yer?= Date: Sun, 15 Dec 2024 19:42:43 +0100 Subject: [PATCH] update_info (#326) * update_info * update_info --- tibber/home.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tibber/home.py b/tibber/home.py index 682ab39..bc368fc 100644 --- a/tibber/home.py +++ b/tibber/home.py @@ -19,7 +19,6 @@ LIVE_SUBSCRIBE, PRICE_INFO, UPDATE_CURRENT_PRICE, - UPDATE_INFO, UPDATE_INFO_PRICE, ) @@ -200,9 +199,7 @@ def hourly_production_data(self) -> list[dict[Any, Any]]: async def update_info(self) -> None: """Update home info and the current price info asynchronously.""" - if data := await self._tibber_control.execute(UPDATE_INFO % self._home_id): - self.info = data - self._update_has_real_time_consumption() + await self.update_info_and_price_info() async def update_info_and_price_info(self) -> None: """Update home info and all price info asynchronously."""