From 430a111303eec6057465935dfba9375febd9e199 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 17 Dec 2023 17:53:08 +0100 Subject: [PATCH] [alarm] Better default actions inference in `alarm.edit`. --- platypush/plugins/alarm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/alarm/__init__.py b/platypush/plugins/alarm/__init__.py index ff84914223..280dea6422 100644 --- a/platypush/plugins/alarm/__init__.py +++ b/platypush/plugins/alarm/__init__.py @@ -403,7 +403,7 @@ class AlarmPlugin(RunnablePlugin, EntityManager): when=when or alarm.when, media=media or alarm.media, media_plugin=media_plugin or alarm.media_plugin or self.media_plugin, - actions=actions or alarm.actions or [], + actions=actions if actions is not None else (alarm.actions or []), name=new_name or name, enabled=enabled if enabled is not None else alarm.is_enabled(), audio_volume=audio_volume