Skip to content

Commit

Permalink
update_info (#326)
Browse files Browse the repository at this point in the history
* update_info

* update_info
  • Loading branch information
Danielhiversen authored Dec 15, 2024
1 parent 1d8e833 commit 306d4bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tibber/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
LIVE_SUBSCRIBE,
PRICE_INFO,
UPDATE_CURRENT_PRICE,
UPDATE_INFO,
UPDATE_INFO_PRICE,
)

Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 306d4bb

Please sign in to comment.