Skip to content

Commit

Permalink
update_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielhiversen authored Dec 15, 2024
1 parent 1d8e833 commit 3debbe2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tibber/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,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 3debbe2

Please sign in to comment.