Skip to content

Commit

Permalink
fix: length issue (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja authored Sep 27, 2024
1 parent 9325fc2 commit 9b06901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yoto_api/YotoAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def update_players(self, token: Token, players: list[YotoPlayer]) -> None:
values = alarms[index].split(",")
if index > len(players[deviceId].config.alarms) - 1:
# Sometimes the alarm list coming from API is shorter than it should be. This implies new enabled alarm that hasn't been toggled.
if len(values) > 5:
if len(values) > 6:
players[deviceId].config.alarms.append(
Alarm(
days_enabled=values[0],
Expand Down

0 comments on commit 9b06901

Please sign in to comment.