Skip to content

Commit

Permalink
add missing private method
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejgray committed May 17, 2024
1 parent edb03ca commit 42bddb4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42bddb4

Please sign in to comment.