From cfb0dc15639ba596f26e3e7b90ed0af3f568ffba Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 30 Jul 2026 15:54:44 -0500 Subject: [PATCH] Make model required --- homeassistant/components/esphome/assist_satellite.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/esphome/assist_satellite.py b/homeassistant/components/esphome/assist_satellite.py index f766e272b296..57591395b8db 100644 --- a/homeassistant/components/esphome/assist_satellite.py +++ b/homeassistant/components/esphome/assist_satellite.py @@ -119,6 +119,7 @@ _WAKE_WORD_CONFIG_SCHEMA = vol.Schema( { vol.Required("type"): str, vol.Required("wake_word"): str, + vol.Required("model"): str, }, extra=vol.ALLOW_EXTRA, ) @@ -910,13 +911,11 @@ def _get_custom_wake_words( # custom_wake_words/sub_dir/my_wake_word.json -> sub_dir/my_wake_word wake_word_id = str(config_path.relative_to(wake_words_dir).with_suffix("")) - # Inspect config file and load model with open(config_path, encoding="utf-8") as config_file: config_dict = json.load(config_file) try: config = _WAKE_WORD_CONFIG_SCHEMA(config_dict) except vol.Invalid as err: - # Invalid config _LOGGER.debug( "Invalid wake word config: path=%s, error=%s", config_path, @@ -926,7 +925,6 @@ def _get_custom_wake_words( model_path = config_path.parent / config["model"] if not model_path.exists(): - # Missing model file _LOGGER.debug( "Missing custom wake word model file: %s (config=%s)", model_path,