Skip to content

Commit

Permalink
feat: online status
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja committed Apr 14, 2024
1 parent fdef727 commit ab2d82b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions yoto_api/YotoAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def update_devices(self, token) -> list[YotoPlayer]:
id=device["deviceId"],
name=device["name"],
deviceType=device["deviceType"],
online=device["online"],
)
result.append(player)

Expand Down
1 change: 1 addition & 0 deletions yoto_api/YotoPlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class YotoPlayer:
id: str = None
name: str = None
deviceType: str = None
online: bool = None


# {'devices': [{'deviceId': 'y23IBS76kCaOSrGlz29XhIFO', 'name': 'Yoto Player', 'description': 'nameless.limit', 'online': False, 'releaseChannel': 'general', 'deviceType': 'v3', 'deviceFamily': 'v3', 'deviceGroup': '', 'hasUserGivenName': False}]}

0 comments on commit ab2d82b

Please sign in to comment.