tesla-fleet-api 1.2.2__py3-none-any.whl → 1.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  """Tesla Fleet API"""
2
2
 
3
3
  __author__ = "hello@teslemetry.com"
4
- __version__ = "1.2.2"
4
+ __version__ = "1.2.3"
5
5
 
6
6
  from tesla_fleet_api.tesla.fleet import TeslaFleetApi
7
7
  from tesla_fleet_api.tesla.bluetooth import TeslaBluetooth
@@ -8,18 +8,20 @@ from tesla_fleet_api.tesla import TeslaFleetApi
8
8
 
9
9
  class Teslemetry(TeslaFleetApi):
10
10
 
11
- server = "https://api.teslemetry.com"
11
+
12
12
  Vehicles = TeslemetryVehicles
13
13
 
14
14
  def __init__(
15
15
  self,
16
16
  session: aiohttp.ClientSession,
17
17
  access_token: str,
18
+ server: str = "https://api.teslemetry.com"
18
19
  ):
19
20
  """Initialize the Teslemetry API."""
20
21
 
21
22
  self.session = session
22
23
  self.access_token = access_token
24
+ self.server = server
23
25
 
24
26
  self.charging = self.Charging(self)
25
27
  self.energySites = self.EnergySites(self)
@@ -56,7 +58,7 @@ class Teslemetry(TeslaFleetApi):
56
58
  )
57
59
  if update_region and "region" in resp:
58
60
  self.region = resp["region"].lower()
59
- #self.server = f"https://{self.region}.teslemetry.com"
61
+ self.server = f"https://{self.region}.teslemetry.com"
60
62
  LOGGER.debug("Using server %s", self.server)
61
63
  return resp
62
64
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tesla_fleet_api
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Tesla Fleet API library for Python
5
5
  Author-email: Brett Adams <hello@teslemetry.com>
6
6
  License-Expression: Apache-2.0
@@ -1,4 +1,4 @@
1
- tesla_fleet_api/__init__.py,sha256=GKlKy5acGJwH2mDdMg1xhMFo2YIu3pCWhNi5UJkNRiQ,474
1
+ tesla_fleet_api/__init__.py,sha256=gW07xbJ7sUEHjNcvaGqYRX2CeGoz--dljF8Hedn8H6A,474
2
2
  tesla_fleet_api/const.py,sha256=CMux_Tju1Qu8Zz3xIenazMU3Vbse94ChYyz5QfrUzHI,4180
3
3
  tesla_fleet_api/exceptions.py,sha256=39O76jiybiAQSjfVnp4KMJz7z9TP1WYBZ1zovN_Aock,36435
4
4
  tesla_fleet_api/tesla/__init__.py,sha256=ahqqQigZbXfysOpo28qUudUfWrQfKRpD_1az368Sjr0,823
@@ -38,13 +38,13 @@ tesla_fleet_api/tesla/vehicle/proto/vcsec_pb2.pyi,sha256=tXsoZtCtKjxu7WayydmFBip
38
38
  tesla_fleet_api/tesla/vehicle/proto/vehicle_pb2.py,sha256=psmlpmURBaVO45hMbtmfVvIAhEdWEnrkVYk2H5kOZoI,44888
39
39
  tesla_fleet_api/tesla/vehicle/proto/vehicle_pb2.pyi,sha256=HKiB-RdmRH80PGq8EII3KKPEknMhmKOF9xQqD5sf5aE,74636
40
40
  tesla_fleet_api/teslemetry/__init__.py,sha256=BFi16_y-1wRF8XhtgHsYM22eT8T1hTAGJ10S3Q9rWHI,464
41
- tesla_fleet_api/teslemetry/teslemetry.py,sha256=r26kS1JqYj2KzRQpK_Kn_v2xz42yho2eFs4FSGIo79Y,2980
41
+ tesla_fleet_api/teslemetry/teslemetry.py,sha256=atRW5RL-EDBU8UYkVuKHGZwfrRe7IXfYAoUhwTd99-c,3018
42
42
  tesla_fleet_api/teslemetry/vehicles.py,sha256=73xWsLP0iGml1DAw13mKnpG1Spb-NwkE4aD1rZ-2_N4,10410
43
43
  tesla_fleet_api/tessie/__init__.py,sha256=8HiaMLz1RueRoT5PSF1Y7iRr0-RV6ujgOH2RBSSUFk4,436
44
44
  tesla_fleet_api/tessie/tessie.py,sha256=UByX0BmDcqLPiW8ofNuGmMcjXvaWRn3taC68Ji80Yf8,2666
45
45
  tesla_fleet_api/tessie/vehicles.py,sha256=Cdp0pt2Z8bzK5T9wQ8_KubGSZ3Gevx1Q18kqJqEUxfs,1011
46
- tesla_fleet_api-1.2.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
47
- tesla_fleet_api-1.2.2.dist-info/METADATA,sha256=oA55duaDdz87DxfHoCnLNbGC7qIqxqe9sGN3GJTBH7Q,6720
48
- tesla_fleet_api-1.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
49
- tesla_fleet_api-1.2.2.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
50
- tesla_fleet_api-1.2.2.dist-info/RECORD,,
46
+ tesla_fleet_api-1.2.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
47
+ tesla_fleet_api-1.2.3.dist-info/METADATA,sha256=Ow9uIK6FZWxEqGc9A8zatyY_Qz99vZv67Q81bryuNrs,6720
48
+ tesla_fleet_api-1.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
49
+ tesla_fleet_api-1.2.3.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
50
+ tesla_fleet_api-1.2.3.dist-info/RECORD,,