From 98113281828edd9591941f79421852c718cfa6fb Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Sat, 11 Oct 2025 16:17:54 -0700 Subject: [PATCH] Update resulting from adding HAL and Marvin This is to support my personal use cases of HAL-9000 and Marvin voice assistants. --- linux_voice_assistant/led_controller.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux_voice_assistant/led_controller.py b/linux_voice_assistant/led_controller.py index 6daa26d..4ad9732 100644 --- a/linux_voice_assistant/led_controller.py +++ b/linux_voice_assistant/led_controller.py @@ -92,6 +92,12 @@ class LedController(EventHandler): except asyncio.CancelledError: await self.color(_OFF) + # --- THIS IS THE NEWLY ADDED METHOD --- + @subscribe + def ha_connected(self, data: dict): + _LOGGER.debug("HA Connected, setting idle LED state.") + self.voice_run_end(data) + @subscribe def voice_wakeword(self, data: dict): _LOGGER.debug("LED Event: voice_wakeword")