From 31fa80afa7cf96423a088ca43dcf7624907bcbf9 Mon Sep 17 00:00:00 2001 From: miro Date: Thu, 14 Nov 2024 20:45:34 +0000 Subject: [PATCH] its a bug hunt --- ovos_workshop/skills/ovos.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index 7a18d24..71c0806 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -941,6 +941,7 @@ def register_resting_screen(self): handler = getattr(self, attr_name) if hasattr(handler, 'resting_handler'): resting_name = handler.resting_handler + LOG.debug(f"{get_handler_name(handler)} is a resting screen, name: {resting_name}") def register(message=None): self.log.info(f'Registering resting screen {resting_name} for {self.skill_id}.') @@ -953,10 +954,10 @@ def register(message=None): self.add_event("homescreen.manager.reload.list", register, speak_errors=False) - def wrapper(message): - LOG.debug(f"resting_handler: {attr_name} - {resting_name} - {get_handler_name(handler)}") + def wrapper(message, cb=handler): + LOG.debug(f"resting_handler: {attr_name} - {resting_name} - {get_handler_name(cb)}") if message.data["homescreen_id"] == self.skill_id: - handler(message) + cb(message) self.add_event("homescreen.manager.activate.display", wrapper, speak_errors=False)