myvsb-developer-api 1.0.2__tar.gz → 1.0.4__tar.gz
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.
- {myvsb_developer_api-1.0.2/src/myvsb_developer_api.egg-info → myvsb_developer_api-1.0.4}/PKG-INFO +1 -1
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/pyproject.toml +1 -1
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/api_layer/open_api_client.py +17 -17
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/api_layer/rest_api.py +2 -2
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4/src/myvsb_developer_api.egg-info}/PKG-INFO +1 -1
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/LICENSE +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/README.md +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/setup.cfg +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/api_layer/const.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/api_layer/exceptions.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/api_layer/utils.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/active_ventilation.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/air_conditioning.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/auxiliary_heating.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/base_model.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/charging.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/charging_profiles.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/common.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/configurations.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/driving_range.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/enums.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/parking_position.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/vehicle.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/vehicle_status.py +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myvsb_developer_api.egg-info/SOURCES.txt +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myvsb_developer_api.egg-info/dependency_links.txt +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myvsb_developer_api.egg-info/requires.txt +0 -0
- {myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myvsb_developer_api.egg-info/top_level.txt +0 -0
{myvsb_developer_api-1.0.2/src/myvsb_developer_api.egg-info → myvsb_developer_api-1.0.4}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: myvsb-developer-api
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: Asynchronous Python library for the MyVSB Developer API
|
|
5
5
|
Author-email: net0045 <stepan.netolicky@vsb.cz>
|
|
6
6
|
Project-URL: Homepage, https://github.com/mobility-lab-vsb/myvsb-developer-api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
from typing import Any, Optional, List
|
|
3
3
|
from aiohttp import ClientSession
|
|
4
|
-
from .rest_api import SkodaRestAPI
|
|
4
|
+
from .rest_api import PostEndpointResult, SkodaRestAPI
|
|
5
5
|
from ..models.vehicle import VehicleResponse, Odometer
|
|
6
6
|
from ..models.vehicle_status import VehicleStatus
|
|
7
7
|
from ..models.active_ventilation import ActiveVentilation
|
|
@@ -71,7 +71,7 @@ class OpenAPIClient:
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
async def start_air_conditioning(self, vin: str, temperature: float, unit: str = "CELSIUS", without_external_power: bool = True) ->
|
|
74
|
+
async def start_air_conditioning(self, vin: str, temperature: float, unit: str = "CELSIUS", without_external_power: bool = True) -> PostEndpointResult:
|
|
75
75
|
"""Starts the air conditioning for the vehicle with the given VIN."""
|
|
76
76
|
config = StartAirConditioningConfiguration(
|
|
77
77
|
target_temperature=ConfigurationTargetTemperature(
|
|
@@ -80,13 +80,13 @@ class OpenAPIClient:
|
|
|
80
80
|
),
|
|
81
81
|
air_conditioning_without_external_power=without_external_power,
|
|
82
82
|
)
|
|
83
|
-
await self.rest_api.start_air_conditioning(vin, config)
|
|
83
|
+
return await self.rest_api.start_air_conditioning(vin, config)
|
|
84
84
|
|
|
85
|
-
async def stop_air_conditioning(self, vin: str) ->
|
|
85
|
+
async def stop_air_conditioning(self, vin: str) -> PostEndpointResult:
|
|
86
86
|
"""Stops the air_conditioning of the vehicle and return None if it was succesfull else catch an exception in HomeAssistant"""
|
|
87
|
-
await self.rest_api.stop_air_conditioning(vin)
|
|
87
|
+
return await self.rest_api.stop_air_conditioning(vin)
|
|
88
88
|
|
|
89
|
-
async def start_auxiliary_heating(self, vin: str, spin: str, duration_in_seconds: int = 120, start_mode: str = "HEATING", target_temperature: Optional[float] = None, unit: str = "CELSIUS") ->
|
|
89
|
+
async def start_auxiliary_heating(self, vin: str, spin: str, duration_in_seconds: int = 120, start_mode: str = "HEATING", target_temperature: Optional[float] = None, unit: str = "CELSIUS") -> PostEndpointResult:
|
|
90
90
|
"""Starts the auxiliary heating for the vehicle with the given VIN."""
|
|
91
91
|
temp_obj = None
|
|
92
92
|
if target_temperature is not None:
|
|
@@ -101,27 +101,27 @@ class OpenAPIClient:
|
|
|
101
101
|
start_mode=start_mode,
|
|
102
102
|
target_temperature=temp_obj,
|
|
103
103
|
)
|
|
104
|
-
await self.rest_api.start_auxiliary_heating(vin, config)
|
|
104
|
+
return await self.rest_api.start_auxiliary_heating(vin, config)
|
|
105
105
|
|
|
106
|
-
async def stop_auxiliary_heating(self, vin: str) ->
|
|
106
|
+
async def stop_auxiliary_heating(self, vin: str) -> PostEndpointResult:
|
|
107
107
|
"""Stops the auxiliary_heating of the vehicle and return None if it was succesfull else catch an exception in HomeAssistant"""
|
|
108
|
-
await self.rest_api.stop_auxiliary_heating(vin)
|
|
108
|
+
return await self.rest_api.stop_auxiliary_heating(vin)
|
|
109
109
|
|
|
110
|
-
async def start_active_ventilation(self, vin: str) ->
|
|
110
|
+
async def start_active_ventilation(self, vin: str) -> PostEndpointResult:
|
|
111
111
|
"""Starts the active_ventilation for the vehicle with the given VIN."""
|
|
112
|
-
await self.rest_api.start_active_ventilation(vin)
|
|
112
|
+
return await self.rest_api.start_active_ventilation(vin)
|
|
113
113
|
|
|
114
|
-
async def stop_active_ventilation(self, vin: str) ->
|
|
114
|
+
async def stop_active_ventilation(self, vin: str) -> PostEndpointResult:
|
|
115
115
|
"""Stops the active_ventilation of the vehicle and return None if it was succesfull else catch an exception in HomeAssistant"""
|
|
116
|
-
await self.rest_api.stop_active_ventilation(vin)
|
|
116
|
+
return await self.rest_api.stop_active_ventilation(vin)
|
|
117
117
|
|
|
118
|
-
async def start_charging(self, vin: str) ->
|
|
118
|
+
async def start_charging(self, vin: str) -> PostEndpointResult:
|
|
119
119
|
"""Starts the charging process for the vehicle with the given VIN."""
|
|
120
|
-
await self.rest_api.start_charging(vin)
|
|
120
|
+
return await self.rest_api.start_charging(vin)
|
|
121
121
|
|
|
122
|
-
async def stop_charging(self, vin: str) ->
|
|
122
|
+
async def stop_charging(self, vin: str) -> PostEndpointResult:
|
|
123
123
|
"""Stops the charging process for the vehicle with the given VIN."""
|
|
124
|
-
await self.rest_api.stop_charging(vin)
|
|
124
|
+
return await self.rest_api.stop_charging(vin)
|
|
125
125
|
|
|
126
126
|
async def connect(self):
|
|
127
127
|
"""TODO: Implementation of connect mechanism."""
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/api_layer/rest_api.py
RENAMED
|
@@ -266,11 +266,11 @@ class SkodaRestAPI:
|
|
|
266
266
|
status = await self._make_post_request(url)
|
|
267
267
|
return PostEndpointResult(url=url, status=status, headers={})
|
|
268
268
|
|
|
269
|
-
async def start_active_ventilation(self, vin: str
|
|
269
|
+
async def start_active_ventilation(self, vin: str) -> PostEndpointResult:
|
|
270
270
|
"""Starts the active ventilation for the vehicle with the given VIN. The payload should contain any necessary parameters for starting the active ventilation."""
|
|
271
271
|
url = f"/api/v1/vehicles/{vin}/active-ventilation/start"
|
|
272
272
|
|
|
273
|
-
status = await self._make_post_request(url
|
|
273
|
+
status = await self._make_post_request(url)
|
|
274
274
|
return PostEndpointResult(url=url, status=status, headers={})
|
|
275
275
|
|
|
276
276
|
async def stop_active_ventilation(self, vin: str) -> PostEndpointResult:
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4/src/myvsb_developer_api.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: myvsb-developer-api
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: Asynchronous Python library for the MyVSB Developer API
|
|
5
5
|
Author-email: net0045 <stepan.netolicky@vsb.cz>
|
|
6
6
|
Project-URL: Homepage, https://github.com/mobility-lab-vsb/myvsb-developer-api
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/api_layer/const.py
RENAMED
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/api_layer/exceptions.py
RENAMED
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/api_layer/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/base_model.py
RENAMED
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/charging.py
RENAMED
|
File without changes
|
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/common.py
RENAMED
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/configurations.py
RENAMED
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/driving_range.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/vehicle.py
RENAMED
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myskoda_openapi/models/vehicle_status.py
RENAMED
|
File without changes
|
{myvsb_developer_api-1.0.2 → myvsb_developer_api-1.0.4}/src/myvsb_developer_api.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|