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