Skip to content

Commit

Permalink
tesla: await the _get_vehicle_list call
Browse files Browse the repository at this point in the history
  • Loading branch information
eras committed Jan 16, 2024
1 parent 47b0df1 commit 09eb728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teslabot/tesla.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def call() -> List[Any]:
return result_or_error

async def _command_vehicles(self, context: CommandContext, valid: Tuple[()]) -> None:
vehicles = self._get_vehicle_list()
vehicles = await self._get_vehicle_list()
await self.control.send_message(context.to_message_context(), f"vehicles: {vehicles}")

async def _get_vehicle(self, display_name: Optional[str]) -> teslapy.Vehicle:
Expand Down

0 comments on commit 09eb728

Please sign in to comment.