From 0be35af4cc0affb6a89d2cc5d42fff91d0907e5b Mon Sep 17 00:00:00 2001 From: Peter van Hulten Date: Thu, 2 Jan 2025 09:54:50 +0100 Subject: [PATCH 1/2] Add spec version as property --- soliscloud_api/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/soliscloud_api/__init__.py b/soliscloud_api/__init__.py index 7f119ea..837e528 100644 --- a/soliscloud_api/__init__.py +++ b/soliscloud_api/__init__.py @@ -21,8 +21,8 @@ import async_timeout # VERSION -VERSION = '1.0.0' -SUPPORTED_API_VERSION = '1.2' +VERSION = '1.0.1' +SUPPORTED_SPEC_VERSION = '1.2' RESOURCE_PREFIX = '/v1/api/' VERB = "POST" @@ -144,6 +144,11 @@ def session(self) -> ClientSession: """ aiohttp client session ID.""" return self._session + @property + def spec_version(self) -> str: + """ supported version of the Soliscloud spec.""" + return SUPPORTED_SPEC_VERSION + # All methods take key and secret as positional arguments followed by # one or more keyword arguments async def user_station_list( From 9d809b25b28313f7ec316f9ee1353c90e0f1ac1b Mon Sep 17 00:00:00 2001 From: Peter van Hulten Date: Thu, 2 Jan 2025 09:55:22 +0100 Subject: [PATCH 2/2] Bump patch version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 46b4037..8f299fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "soliscloud-api" -version = "1.0.0" +version = "1.0.1" authors = [ { name="Peter van Hulten", email="peter.vanhulten@gmx.net" }, ]