Skip to content

Commit

Permalink
v0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Jul 10, 2024
1 parent fbcf785 commit ce0ee2e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="tesla_fleet_api",
version="0.7.1",
version="0.7.2",
author="Brett Adams",
author_email="hello@teslemetry.com",
description="Tesla Fleet API library for Python",
Expand Down
1 change: 1 addition & 0 deletions tesla_fleet_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
__all__ = [
"TeslaFleetApi",
"TeslaFleetOAuth",
"TeslaFleetOpenSource",
"Teslemetry",
"Tessie",
"Charging",
Expand Down
2 changes: 1 addition & 1 deletion tesla_fleet_api/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from enum import Enum
import logging

VERSION = "0.7.1"
VERSION = "0.7.2"
LOGGER = logging.getLogger(__package__)
SERVERS = {
"na": "https://fleet-api.prd.na.vn.cloud.tesla.com",
Expand Down
3 changes: 2 additions & 1 deletion tesla_fleet_api/teslafleetapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ async def _request(

# Call a pre-request hook if provided
if self.refresh_hook is not None:
await self.refresh_hook()
if access_token := await self.refresh_hook():
self.access_token = access_token

LOGGER.debug("Sending request to %s", path)

Expand Down

0 comments on commit ce0ee2e

Please sign in to comment.