Skip to content

Commit

Permalink
v0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Feb 4, 2025
1 parent d27167e commit cd394ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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.9.7",
version="0.9.8",
author="Brett Adams",
author_email="hello@teslemetry.com",
description="Tesla Fleet API library for Python",
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.9.7"
VERSION = "0.9.8"
LOGGER = logging.getLogger(__package__)
SERVERS = {
"na": "https://fleet-api.prd.na.vn.cloud.tesla.com",
Expand Down
6 changes: 3 additions & 3 deletions tesla_fleet_api/teslafleetapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ async def _request(
method: Method,
path: str,
params: dict[str, Any] | None = None,
json: dict[str, Any] | None = None,
json: dict[str, Any] | None = {},
) -> dict[str, Any]:
"""Send a request to the Tesla Fleet API."""

if not self.server:
raise ValueError("Server was not set at init. Call find_server() first.")

if method == Method.GET and json is not None:
raise ValueError("GET requests cannot have a body.")
if method == Method.GET:
json = None

# Call a pre-request hook if provided
if self.refresh_hook is not None:
Expand Down

0 comments on commit cd394ec

Please sign in to comment.