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" }, ] 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(