From 364aef1a74d4c9d1b3aca2e1d05f53593b06edb8 Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Wed, 10 Sep 2025 12:40:19 -0700 Subject: [PATCH] Delete linux_voice_assistant/wakeword_indicator.py --- linux_voice_assistant/wakeword_indicator.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 linux_voice_assistant/wakeword_indicator.py diff --git a/linux_voice_assistant/wakeword_indicator.py b/linux_voice_assistant/wakeword_indicator.py deleted file mode 100644 index 4a93fb7..0000000 --- a/linux_voice_assistant/wakeword_indicator.py +++ /dev/null @@ -1,20 +0,0 @@ -"""Wakeword Engine indicator helper. - -Provides a simple function to update the text sensor state via APIServer. -""" -from .api_server import APIServer - -SENSOR_OBJECT_ID = "wakeword_engine" - -def set_wakeword_engine(server: APIServer, engine_name: str) -> None: - """Publish the current wakeword engine name to Home Assistant. - - Call this after the engine is selected and whenever it changes. - """ - msg = server.publish_text_sensor(SENSOR_OBJECT_ID, engine_name) - if msg is not None: - # Enqueue/send happens in the server run loop; callers should hand this to the transport. - # For convenience, APIServer.handle_message() returns messages to write downstream. - # Here we directly push by using APIServer._writelines if available. - if getattr(server, "_writelines", None) is not None: - server._writelines([msg]) # type: ignore[attr-defined] \ No newline at end of file