tesla-fleet-api 0.7.7__py3-none-any.whl → 0.7.8__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 +9 -9
- tesla_fleet_api/energyspecific.py +11 -11
- {tesla_fleet_api-0.7.7.dist-info → tesla_fleet_api-0.7.8.dist-info}/METADATA +1 -1
- {tesla_fleet_api-0.7.7.dist-info → tesla_fleet_api-0.7.8.dist-info}/RECORD +8 -8
- {tesla_fleet_api-0.7.7.dist-info → tesla_fleet_api-0.7.8.dist-info}/LICENSE +0 -0
- {tesla_fleet_api-0.7.7.dist-info → tesla_fleet_api-0.7.8.dist-info}/WHEEL +0 -0
- {tesla_fleet_api-0.7.7.dist-info → tesla_fleet_api-0.7.8.dist-info}/top_level.txt +0 -0
tesla_fleet_api/const.py
CHANGED
tesla_fleet_api/energy.py
CHANGED
@@ -32,10 +32,10 @@ class Energy:
|
|
32
32
|
async def backup_history(
|
33
33
|
self,
|
34
34
|
energy_site_id: int,
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
time_zone: str,
|
35
|
+
period: TeslaEnergyPeriod | str | None,
|
36
|
+
start_date: str | None = None,
|
37
|
+
end_date: str | None = None,
|
38
|
+
time_zone: str | None = None,
|
39
39
|
) -> dict[str, Any]:
|
40
40
|
"""Returns the backup (off-grid) event history of the site in duration of seconds."""
|
41
41
|
return await self._request(
|
@@ -55,7 +55,7 @@ class Energy:
|
|
55
55
|
energy_site_id: int,
|
56
56
|
start_date: str,
|
57
57
|
end_date: str,
|
58
|
-
time_zone: str,
|
58
|
+
time_zone: str | None = None,
|
59
59
|
) -> dict[str, Any]:
|
60
60
|
"""Returns the charging history of a wall connector."""
|
61
61
|
return await self._request(
|
@@ -72,10 +72,10 @@ class Energy:
|
|
72
72
|
async def energy_history(
|
73
73
|
self,
|
74
74
|
energy_site_id: int,
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
time_zone: str,
|
75
|
+
period: TeslaEnergyPeriod | str | None,
|
76
|
+
start_date: str | None = None,
|
77
|
+
end_date: str | None = None,
|
78
|
+
time_zone: str | None = None,
|
79
79
|
) -> dict[str, Any]:
|
80
80
|
"""Returns the energy measurements of the site, aggregated to the requested period."""
|
81
81
|
return await self._request(
|
@@ -29,17 +29,17 @@ class EnergySpecific:
|
|
29
29
|
|
30
30
|
async def backup_history(
|
31
31
|
self,
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
time_zone: str,
|
32
|
+
period: TeslaEnergyPeriod | str | None,
|
33
|
+
start_date: str | None = None,
|
34
|
+
end_date: str | None = None,
|
35
|
+
time_zone: str | None = None,
|
36
36
|
) -> dict[str, Any]:
|
37
37
|
"""Returns the backup (off-grid) event history of the site in duration of seconds."""
|
38
38
|
return await self._parent.backup_history(
|
39
39
|
self.energy_site_id,
|
40
|
+
period,
|
40
41
|
start_date,
|
41
42
|
end_date,
|
42
|
-
period,
|
43
43
|
time_zone,
|
44
44
|
)
|
45
45
|
|
@@ -47,7 +47,7 @@ class EnergySpecific:
|
|
47
47
|
self,
|
48
48
|
start_date: str,
|
49
49
|
end_date: str,
|
50
|
-
time_zone: str,
|
50
|
+
time_zone: str | None = None,
|
51
51
|
) -> dict[str, Any]:
|
52
52
|
"""Returns the charging history of a wall connector."""
|
53
53
|
return await self._parent.charge_history(
|
@@ -59,17 +59,17 @@ class EnergySpecific:
|
|
59
59
|
|
60
60
|
async def energy_history(
|
61
61
|
self,
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
time_zone: str,
|
62
|
+
period: TeslaEnergyPeriod | str | None,
|
63
|
+
start_date: str | None = None,
|
64
|
+
end_date: str | None = None,
|
65
|
+
time_zone: str | None = None,
|
66
66
|
) -> dict[str, Any]:
|
67
67
|
"""Returns the energy measurements of the site, aggregated to the requested period."""
|
68
68
|
return await self._parent.energy_history(
|
69
69
|
self.energy_site_id,
|
70
|
+
period,
|
70
71
|
start_date,
|
71
72
|
end_date,
|
72
|
-
period,
|
73
73
|
time_zone,
|
74
74
|
)
|
75
75
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
tesla_fleet_api/__init__.py,sha256=qGS4Qfp0uHaeK8UXOQVYjZ9rs_iR-CJ6rfCMLswphKA,667
|
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=CeEctdBEYlYx1HcdrWdrHlpJvgNsjeJBLb6rBM55U98,9577
|
4
|
+
tesla_fleet_api/energy.py,sha256=S7D75MPuMVsHgkyUcFfMqjGCLZBM5YVFlWLEHbaX-zw,5957
|
5
|
+
tesla_fleet_api/energyspecific.py,sha256=TT7cFPPKe7ARB0-CGRODXbJX6RsjCd6EF5YxUxflzgM,4268
|
6
6
|
tesla_fleet_api/exceptions.py,sha256=0-qeJUfyUGUcm2R3_W4OuGImgshY92ApSixl_CRM8ak,11171
|
7
7
|
tesla_fleet_api/partner.py,sha256=1vIBUaxKLIfqcC0X6VXZN0dMAzj_CLNPUMjA6QVqZ1k,1223
|
8
8
|
tesla_fleet_api/ratecalculator.py,sha256=4lz8yruUeouHXh_3ezsXX-CTpIegp1T1J4VuRV_qdHA,1791
|
@@ -14,8 +14,8 @@ tesla_fleet_api/tessie.py,sha256=4dBYxe1G2v9JvJGRbb01wXrAmvWT4jOfV4f_VQE_vkE,230
|
|
14
14
|
tesla_fleet_api/user.py,sha256=TZE2oh-n5zrhKXmGRuiNL9voKVODD7rBhGE_IObYVGA,1179
|
15
15
|
tesla_fleet_api/vehicle.py,sha256=KFFotHSmzaC4MhIlU8hoG7SVvPiV3_FC__uJf8BG_G0,31412
|
16
16
|
tesla_fleet_api/vehiclespecific.py,sha256=Nr4zZzfmIuw3RFYjQEX6c_xtYZgztMsN5ohVn-YEH0I,20600
|
17
|
-
tesla_fleet_api-0.7.
|
18
|
-
tesla_fleet_api-0.7.
|
19
|
-
tesla_fleet_api-0.7.
|
20
|
-
tesla_fleet_api-0.7.
|
21
|
-
tesla_fleet_api-0.7.
|
17
|
+
tesla_fleet_api-0.7.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
18
|
+
tesla_fleet_api-0.7.8.dist-info/METADATA,sha256=px2AWgyJRv2-Pnm0bGxgWwweKgGSwPTep_fxDocusMo,3821
|
19
|
+
tesla_fleet_api-0.7.8.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
|
20
|
+
tesla_fleet_api-0.7.8.dist-info/top_level.txt,sha256=jeNbog_1saXBFrGpom9WyPWmilxsyP3szL_G7JLWQfM,16
|
21
|
+
tesla_fleet_api-0.7.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|