tesla-fleet-api 0.6.0__py3-none-any.whl → 0.6.1__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.
- tesla_fleet_api/const.py +1 -1
- tesla_fleet_api/energy.py +10 -0
- tesla_fleet_api/energyspecific.py +7 -0
- {tesla_fleet_api-0.6.0.dist-info → tesla_fleet_api-0.6.1.dist-info}/METADATA +1 -1
- {tesla_fleet_api-0.6.0.dist-info → tesla_fleet_api-0.6.1.dist-info}/RECORD +8 -8
- {tesla_fleet_api-0.6.0.dist-info → tesla_fleet_api-0.6.1.dist-info}/LICENSE +0 -0
- {tesla_fleet_api-0.6.0.dist-info → tesla_fleet_api-0.6.1.dist-info}/WHEEL +0 -0
- {tesla_fleet_api-0.6.0.dist-info → tesla_fleet_api-0.6.1.dist-info}/top_level.txt +0 -0
tesla_fleet_api/const.py
CHANGED
tesla_fleet_api/energy.py
CHANGED
@@ -152,3 +152,13 @@ class Energy:
|
|
152
152
|
f"api/1/energy_sites/{energy_site_id}/storm_mode",
|
153
153
|
json={"enabled": enabled},
|
154
154
|
)
|
155
|
+
|
156
|
+
async def time_of_use_settings(
|
157
|
+
self, energy_site_id: int, settings: dict[str, Any]
|
158
|
+
) -> dict[str, Any]:
|
159
|
+
"""Update the time of use settings for the energy site."""
|
160
|
+
return await self._request(
|
161
|
+
Method.POST,
|
162
|
+
f"api/1/energy_sites/{energy_site_id}/time_of_use_settings",
|
163
|
+
json={"tou_settings": {"tariff_content_v2": settings}},
|
164
|
+
)
|
@@ -117,3 +117,10 @@ class EnergySpecific:
|
|
117
117
|
self.energy_site_id,
|
118
118
|
enabled,
|
119
119
|
)
|
120
|
+
|
121
|
+
async def time_of_use_settings(self, settings: dict[str, Any]) -> dict[str, Any]:
|
122
|
+
"""Update the site's time of use settings."""
|
123
|
+
return await self._parent.time_of_use_settings(
|
124
|
+
self.energy_site_id,
|
125
|
+
settings,
|
126
|
+
)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
tesla_fleet_api/__init__.py,sha256=0MON9vh3AShIiX16FZ6NU3yZ7kyXFh5GxA0rY8CzVRM,584
|
2
2
|
tesla_fleet_api/charging.py,sha256=N_mc8axrXj3iduqLj_jCt4Vx86tHqe3xqQT4R1R7HvU,1689
|
3
|
-
tesla_fleet_api/const.py,sha256
|
4
|
-
tesla_fleet_api/energy.py,sha256=
|
5
|
-
tesla_fleet_api/energyspecific.py,sha256=
|
3
|
+
tesla_fleet_api/const.py,sha256=LjJDHWvu3SJL5weMizfTKIZ9bbQtAHPjPz-EkhrtuVU,9277
|
4
|
+
tesla_fleet_api/energy.py,sha256=yOKNPyXWKMT7Z9a5RqdNksHokLRo657SWjly1bP2_Qs,5827
|
5
|
+
tesla_fleet_api/energyspecific.py,sha256=zggN-q0tf6EH_57bM4EuQ-IdcemKP0o-xv__LArRNnA,4147
|
6
6
|
tesla_fleet_api/exceptions.py,sha256=BcvJyjY4qM2-Rf7ZMA94xPIN6ebKit89E7qattMmbr8,11018
|
7
7
|
tesla_fleet_api/partner.py,sha256=1vIBUaxKLIfqcC0X6VXZN0dMAzj_CLNPUMjA6QVqZ1k,1223
|
8
8
|
tesla_fleet_api/teslafleetapi.py,sha256=-hiZfEEdS8Sfj_yqW-woiD5XD5_Q2IcMubmkh7wdtdE,4826
|
@@ -12,8 +12,8 @@ tesla_fleet_api/tessie.py,sha256=dZs85N2uVlqkjxB3ICRVnPyyJkl4tWDAb3CQqV4MqQc,209
|
|
12
12
|
tesla_fleet_api/user.py,sha256=TZE2oh-n5zrhKXmGRuiNL9voKVODD7rBhGE_IObYVGA,1179
|
13
13
|
tesla_fleet_api/vehicle.py,sha256=EE8ZgL1QdOVfwPsShGeI9DZtsKcLKG7EcfBCnEugfH0,31411
|
14
14
|
tesla_fleet_api/vehiclespecific.py,sha256=BhWaQGsNhg06gSLGqNEs2JQgolY3mNGtOWz478lofFE,20324
|
15
|
-
tesla_fleet_api-0.6.
|
16
|
-
tesla_fleet_api-0.6.
|
17
|
-
tesla_fleet_api-0.6.
|
18
|
-
tesla_fleet_api-0.6.
|
19
|
-
tesla_fleet_api-0.6.
|
15
|
+
tesla_fleet_api-0.6.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
16
|
+
tesla_fleet_api-0.6.1.dist-info/METADATA,sha256=cmPk7ahou15PI_wS_E1yfkXDxhpZtcBGYdbFklJREUk,3821
|
17
|
+
tesla_fleet_api-0.6.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
18
|
+
tesla_fleet_api-0.6.1.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
|
19
|
+
tesla_fleet_api-0.6.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|