From 8df2211851a6d1a2d5563f692abb6555be8f044f Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Thu, 19 Oct 2023 18:27:50 +0100 Subject: [PATCH] fix/scheduled_event message.context --- ovos_utils/events.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ovos_utils/events.py b/ovos_utils/events.py index 1b8d2fad..76c22494 100644 --- a/ovos_utils/events.py +++ b/ovos_utils/events.py @@ -297,8 +297,9 @@ def on_error(e): 'data': data} message = self._get_source_message() - self.bus.emit(message.reply('mycroft.scheduler.schedule_event', - data=event_data, context=context)) + context = context or message.context + self.bus.emit(Message('mycroft.scheduler.schedule_event', + data=event_data, context=context)) def schedule_event(self, handler: Callable[[Optional[Message]], None], when: Union[datetime, int, float],