From 42bddb4268a99378029e25be3d71098c1c436e51 Mon Sep 17 00:00:00 2001 From: Mike Gray Date: Thu, 16 May 2024 21:15:34 -0500 Subject: [PATCH] add missing private method --- __init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/__init__.py b/__init__.py index f7a067f..914c9c1 100644 --- a/__init__.py +++ b/__init__.py @@ -500,3 +500,12 @@ def _retrieve_ngi_config(self) -> Optional[NGIConfig]: if user_config is None: LOG.error("No user config found! Please submit a ticket to Neon - this is unusual.") return user_config + + def _emit_enable_ww_message(self, ww: str, message: Message) -> Optional[Message]: + # This has to reload the recognizer loop, so allow more time to respond + resp = self.bus.wait_for_response(message.forward( + "neon.enable_wake_word", {"wake_word": ww}), timeout=30) + if not resp: + LOG.error(f"No response to WW enable request for {ww}!") + return None + return resp