From 07884026c63c89c6960e0ad0472e150012f74fa5 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Tue, 22 Aug 2023 10:31:09 -0500 Subject: [PATCH] Detect wake word services in hassio discovery (#98827) --- homeassistant/components/wyoming/config_flow.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/wyoming/config_flow.py b/homeassistant/components/wyoming/config_flow.py index 3fccbaea9c4..f6b8ed73890 100644 --- a/homeassistant/components/wyoming/config_flow.py +++ b/homeassistant/components/wyoming/config_flow.py @@ -93,9 +93,11 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): if user_input is not None: uri = urlparse(self._hassio_discovery.config["uri"]) if service := await WyomingService.create(uri.hostname, uri.port): - if not any( - asr for asr in service.info.asr if asr.installed - ) and not any(tts for tts in service.info.tts if tts.installed): + if ( + not any(asr for asr in service.info.asr if asr.installed) + and not any(tts for tts in service.info.tts if tts.installed) + and not any(wake for wake in service.info.wake if wake.installed) + ): return self.async_abort(reason="no_services") return self.async_create_entry(