From 3f2eee8f42c9e67a8a9e65ccadc00b2bcad19512 Mon Sep 17 00:00:00 2001 From: PimDoos <17709721+PimDoos@users.noreply.github.com> Date: Mon, 23 Jun 2025 21:19:05 +0200 Subject: [PATCH 1/4] Align aiohttp minimum with Home Assistant 2025.01 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 59eac2c..9dba0a2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -aiohttp>=3.9.4 \ No newline at end of file +aiohttp>=3.12.13 \ No newline at end of file From b501ec7afbb88508a54cc7a1688f934616b8ddb5 Mon Sep 17 00:00:00 2001 From: PimDoos <17709721+PimDoos@users.noreply.github.com> Date: Sun, 29 Jun 2025 20:47:58 +0200 Subject: [PATCH 2/4] Bump aiohttp to HA 2025.01 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9dba0a2..adfcb5c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -aiohttp>=3.12.13 \ No newline at end of file +aiohttp>=3.11.11 \ No newline at end of file From 370039fa649f19323d5f6ffb859b7a9e46894c9c Mon Sep 17 00:00:00 2001 From: PimDoos <17709721+PimDoos@users.noreply.github.com> Date: Sun, 29 Jun 2025 20:48:11 +0200 Subject: [PATCH 3/4] Bump version to 0.2.2 --- pyproject.toml | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 083fe7d..69e2463 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sessypy" -version = "0.2.1" +version = "0.2.2" authors = [ { name="PimDoos" }, ] diff --git a/setup.cfg b/setup.cfg index 5f5a69e..5d395e1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = sessypy -version = 0.2.1 +version = 0.2.2 author = PimDoos url = https://github.com/PimDoos/sessypy long_description = file: README.md From 0a11e21cbd4fa080056a921f10c6018e5d25ee0a Mon Sep 17 00:00:00 2001 From: PimDoos <17709721+PimDoos@users.noreply.github.com> Date: Sun, 29 Jun 2025 20:49:00 +0200 Subject: [PATCH 4/4] Deprecate dynamic schedule v1 in favor of v2 --- src/sessypy/const.py | 3 ++- src/sessypy/devices.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sessypy/const.py b/src/sessypy/const.py index efdd005..d7fa091 100644 --- a/src/sessypy/const.py +++ b/src/sessypy/const.py @@ -5,7 +5,8 @@ class SessyApiCommand(StrEnum): CT_DETAILS = f"{API_VERSION_1}/ct/details" - DYNAMIC_SCHEDULE = f"{API_VERSION_1}/dynamic/schedule" + DYNAMIC_SCHEDULE_LEGACY = f"{API_VERSION_1}/dynamic/schedule" + DYNAMIC_SCHEDULE = f"{API_VERSION_2}/dynamic/schedule" ENERGY_STATUS = f"{API_VERSION_1}/energy/status" diff --git a/src/sessypy/devices.py b/src/sessypy/devices.py index fde73cb..3a45b60 100644 --- a/src/sessypy/devices.py +++ b/src/sessypy/devices.py @@ -63,6 +63,9 @@ class SessyBattery(SessyDevice): async def get_dynamic_schedule(self): return await self.api.get(SessyApiCommand.DYNAMIC_SCHEDULE) + async def get_dynamic_schedule_legacy(self): + return await self.api.get(SessyApiCommand.DYNAMIC_SCHEDULE_LEGACY) + async def get_energy_status(self): return await self.api.get(SessyApiCommand.ENERGY_STATUS)