Skip to content

Commit cd394ec

Browse files
committed
v0.9.8
1 parent d27167e commit cd394ec

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="tesla_fleet_api",
8-
version="0.9.7",
8+
version="0.9.8",
99
author="Brett Adams",
1010
author_email="[email protected]",
1111
description="Tesla Fleet API library for Python",

tesla_fleet_api/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from enum import Enum
44
import logging
55

6-
VERSION = "0.9.7"
6+
VERSION = "0.9.8"
77
LOGGER = logging.getLogger(__package__)
88
SERVERS = {
99
"na": "https://fleet-api.prd.na.vn.cloud.tesla.com",

tesla_fleet_api/teslafleetapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ async def _request(
9191
method: Method,
9292
path: str,
9393
params: dict[str, Any] | None = None,
94-
json: dict[str, Any] | None = None,
94+
json: dict[str, Any] | None = {},
9595
) -> dict[str, Any]:
9696
"""Send a request to the Tesla Fleet API."""
9797

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

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

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

0 commit comments

Comments
 (0)