Skip to content

Commit

Permalink
lms: fix alarm circle of death
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Dec 22, 2024
1 parent d867e12 commit 7ced3e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def trigger_read(command):
trigger_read('info.playlists.names')
# set alarm
if command == f'player.control.alarms{CUSTOM_SEP}{custom}':
return
# This does not really work currently. The created string is somehow correct.
# However, much more logic has to be included to add/update/delete alarms, etc.
try:
Expand All @@ -115,7 +116,7 @@ def trigger_read(command):
alarm = f"id:{i} "
for k, v in d.items():
alarm += f"{k}:{v} "
alarm = f"alarm add {alarm.strip()}"
alarm = f"add {alarm.strip()}"
self.logger.debug(f"Set alarm: {alarm}")
self.send_command('player.control.set_alarm' + CUSTOM_SEP + custom, alarm)
except Exception as e:
Expand Down

0 comments on commit 7ced3e8

Please sign in to comment.