File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 55
66setuptools .setup (
77 name = "tesla_fleet_api" ,
8- version = "0.9.7 " ,
8+ version = "0.9.8 " ,
99 author = "Brett Adams" ,
10101111 description = "Tesla Fleet API library for Python" ,
Original file line number Diff line number Diff line change 33from enum import Enum
44import logging
55
6- VERSION = "0.9.7 "
6+ VERSION = "0.9.8 "
77LOGGER = logging .getLogger (__package__ )
88SERVERS = {
99 "na" : "https://fleet-api.prd.na.vn.cloud.tesla.com" ,
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments