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
5 changes: 2 additions & 3 deletions src/tadoasync/tadoasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
Weather,
Zone,
ZoneState,
ZoneStates,
)

CLIENT_ID = "tado-web-app"
Expand Down Expand Up @@ -242,7 +241,7 @@ async def get_zones(self) -> list[Zone]:
obj = orjson.loads(response)
return [Zone.from_dict(zone) for zone in obj]

async def get_zone_states(self) -> list[ZoneStates]:
async def get_zone_states(self) -> dict[str, ZoneState]:
"""Get the zone states."""
response = await self._request(f"homes/{self._home_id}/zoneStates")
obj = orjson.loads(response)
Expand All @@ -254,7 +253,7 @@ async def get_zone_states(self) -> list[ZoneStates]:
for zone_state in zone_states.values():
await self.update_zone_data(zone_state)

return [ZoneStates(zone_states=zone_states)]
return zone_states

async def get_zone_state(self, zone_id: int) -> ZoneState:
"""Get the zone state."""
Expand Down
Loading
Loading