Skip to content

Commit

Permalink
Fix channel list response parsing
Browse files Browse the repository at this point in the history
It seems that the API was changed out from under us. This actually
aligns with what's in their documentation and was likely fixed because
the extra nested array was unnecessary. However, it still breaks any
clients consuming this API.
  • Loading branch information
ScottG489 committed Aug 17, 2024
1 parent 83a934d commit 20c9c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/dae/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class ListChannelsResponse(DaeResponse):
@classmethod
def from_response(cls, list_channels_resp: dict):
channels = []
for channel in list_channels_resp.get('data')[0]:
for channel in list_channels_resp.get('data'):
channels.append(Channel(channel['channel-id'],
channel['channel-name'],
channel['email'],
Expand Down

0 comments on commit 20c9c58

Please sign in to comment.