tesla-fleet-api 0.2.4__py3-none-any.whl → 0.2.6__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.
@@ -99,7 +99,7 @@ class EnergySpecific:
99
99
 
100
100
  async def site_info(self) -> dict[str, Any]:
101
101
  """Returns information about the site. Things like assets (has solar, etc), settings (backup reserve, etc), and features (storm_mode_capable, etc)."""
102
- return await self._parent.site_info()
102
+ return await self._parent.site_info(self.energy_site_id)
103
103
 
104
104
  async def storm_mode(self, enabled: bool) -> dict[str, Any]:
105
105
  """Update storm watch participation."""
@@ -34,6 +34,13 @@ class Teslemetry(TeslaFleetApi):
34
34
  "api/test",
35
35
  )
36
36
 
37
+ async def metadata(self) -> bool:
38
+ """Test API Authentication."""
39
+ return await self._request(
40
+ Methods.GET,
41
+ "api/metadata",
42
+ )
43
+
37
44
  async def find_server(self):
38
45
  """Find the server URL for the Tesla Fleet API."""
39
46
  raise NotImplementedError("Do not use this function for Teslemetry.")
@@ -264,12 +264,16 @@ class Vehicle:
264
264
  )
265
265
 
266
266
  async def remote_seat_heater_request(
267
- self, vehicle_tag: str | int
267
+ self, vehicle_tag: str | int, seat_position: int, level: int
268
268
  ) -> dict[str, Any]:
269
269
  """Sets seat heating."""
270
270
  return await self._request(
271
271
  Methods.POST,
272
272
  f"api/1/vehicles/{vehicle_tag}/command/remote_seat_heater_request",
273
+ json={
274
+ "seat_position": seat_position,
275
+ "level": level,
276
+ },
273
277
  )
274
278
 
275
279
  async def remote_start_drive(self, vehicle_tag: str | int) -> dict[str, Any]:
@@ -159,9 +159,13 @@ class VehicleSpecific:
159
159
  self.vin, seat_position, seat_cooler_level
160
160
  )
161
161
 
162
- async def remote_seat_heater_request(self) -> dict[str, Any]:
162
+ async def remote_seat_heater_request(
163
+ self, seat_position: int, level: int
164
+ ) -> dict[str, Any]:
163
165
  """Sets seat heating."""
164
- return await self._parent.remote_seat_heater_request(self.vin)
166
+ return await self._parent.remote_seat_heater_request(
167
+ self.vin, seat_position, level
168
+ )
165
169
 
166
170
  async def remote_start_drive(self) -> dict[str, Any]:
167
171
  """Starts the vehicle remotely. Requires keyless driving to be enabled."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tesla_fleet_api
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: Tesla Fleet API library for Python
5
5
  Home-page: https://github.com/Teslemetry/tesla_fleet_api
6
6
  Author: Brett Adams
@@ -2,17 +2,17 @@ tesla_fleet_api/__init__.py,sha256=IJ4k3VoTwnVRO1R-tN7EX8_Jm8VTwlCPiXUykM8y7Ek,3
2
2
  tesla_fleet_api/charging.py,sha256=p7xNxYXVCmbm6cAWQRtrPBwthFdqkG50eM2N9QvBsUM,1701
3
3
  tesla_fleet_api/const.py,sha256=vd_Qo--zFf5SZ4dLUT1SWn0BchQjqaE97igXjO1pElU,9028
4
4
  tesla_fleet_api/energy.py,sha256=bIzwQRJfypUcOuOLHGHn-paI-l8s_9k_tQi0cTxdIkw,5171
5
- tesla_fleet_api/energyspecific.py,sha256=NFJNcxx8wz3RcO9IYqt1EAEHFB54LsySseOpsmjZjFw,3606
5
+ tesla_fleet_api/energyspecific.py,sha256=XjwIy_Pziw2yOyJvA3eYVro1rFu7ftN3jT9IYRG22pI,3625
6
6
  tesla_fleet_api/exceptions.py,sha256=V2McY9ajRVhhcP6rxbFlwEjVL-pJ1_ZIq-YRnCapQJ4,8658
7
7
  tesla_fleet_api/partner.py,sha256=D8yMgGfUX9FSftggnsXfIwiNELYuTft-Ic1MGJYUo2c,872
8
8
  tesla_fleet_api/teslafleetapi.py,sha256=gz7-xTMN987dwrWmnO6GdxWIbye9Sj6KLwWhqe4RIYc,4316
9
9
  tesla_fleet_api/teslafleetoauth.py,sha256=ebZA0MDudFQbarH3_BwSCo-Aryz82DZXljz-fAj_uvk,3541
10
- tesla_fleet_api/teslemetry.py,sha256=Rd1_OYQ_-05T-nYPOifppeI8-ADC9wkU9nn5v0spmUE,1047
10
+ tesla_fleet_api/teslemetry.py,sha256=s7vsNQ1mhHfkcmjZ-fhwbjk-H1B8NyyfE-4IH5_rCUQ,1224
11
11
  tesla_fleet_api/user.py,sha256=3VWsLjrOhU0qTMG3LzPBAnkENdf7RcDvXsdWsOyXRHI,1185
12
- tesla_fleet_api/vehicle.py,sha256=HAg7mQT8-_30gYSdDuQZEzlrNQcIU-6zSh-Ep0oAqL8,30846
13
- tesla_fleet_api/vehiclespecific.py,sha256=oPTIDOuEAVPY9LpGokEMHRn1IU1Bua7IRs17onp_ryk,20061
14
- tesla_fleet_api-0.2.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
- tesla_fleet_api-0.2.4.dist-info/METADATA,sha256=uriC1Dlv4h24abTXNi_8qpxb6FQLK-iNODdZT9gbfXQ,3152
16
- tesla_fleet_api-0.2.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
17
- tesla_fleet_api-0.2.4.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
18
- tesla_fleet_api-0.2.4.dist-info/RECORD,,
12
+ tesla_fleet_api/vehicle.py,sha256=gWnoqKc9QFlYciCv_d8wv3jEg-RJ-Z4Oz4mk8Os_4pQ,30992
13
+ tesla_fleet_api/vehiclespecific.py,sha256=EOkwjyYoLj9LfuVSDjDSRl6yJ3DEkDcKWJB8s-1IMyU,20151
14
+ tesla_fleet_api-0.2.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
+ tesla_fleet_api-0.2.6.dist-info/METADATA,sha256=DtVfdJ01B1Kvgwr8zGQsON8UIiZPTiYW1EmCdZfG0iY,3152
16
+ tesla_fleet_api-0.2.6.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
17
+ tesla_fleet_api-0.2.6.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
18
+ tesla_fleet_api-0.2.6.dist-info/RECORD,,