Skip to content

Commit

Permalink
fix: alarm error
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja authored Sep 27, 2024
1 parent 034e408 commit 7375b79
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 @@ -226,7 +226,7 @@ def update_players(self, token: Token, players: list[YotoPlayer]) -> None:
players[deviceId].config.alarms[index].time = values[1]
players[deviceId].config.alarms[index].sound_id = values[2]
players[deviceId].config.alarms[index].volume = values[5]
if len(values) > 5:
if len(values) > 6:
players[deviceId].config.alarms[index].enabled = (
False if values[6] == "0" else True
)
Expand Down

0 comments on commit 7375b79

Please sign in to comment.