From 7ced3e8f0e74059e2c7e3de51e408177e2670a5b Mon Sep 17 00:00:00 2001 From: Onkel Andy Date: Mon, 23 Dec 2024 00:45:28 +0100 Subject: [PATCH] lms: fix alarm circle of death --- lms/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/__init__.py b/lms/__init__.py index 8cdc17b36..1b96ddcf5 100755 --- a/lms/__init__.py +++ b/lms/__init__.py @@ -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: @@ -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: