forked from platypush/platypush
[alarm] Better default actions inference in alarm.edit
.
This commit is contained in:
parent
b0feb8ed8f
commit
430a111303
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ class AlarmPlugin(RunnablePlugin, EntityManager):
|
||||||
when=when or alarm.when,
|
when=when or alarm.when,
|
||||||
media=media or alarm.media,
|
media=media or alarm.media,
|
||||||
media_plugin=media_plugin or alarm.media_plugin or self.media_plugin,
|
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,
|
name=new_name or name,
|
||||||
enabled=enabled if enabled is not None else alarm.is_enabled(),
|
enabled=enabled if enabled is not None else alarm.is_enabled(),
|
||||||
audio_volume=audio_volume
|
audio_volume=audio_volume
|
||||||
|
|
Loading…
Reference in a new issue