Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "sessypy"
version = "0.2.1"
version = "0.2.2"
authors = [
{ name="PimDoos" },
]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aiohttp>=3.9.4
aiohttp>=3.11.11
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/sessypy/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions src/sessypy/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down