Don't log voice assistant config timeout error (#127010)

Don't log config timeout error
This commit is contained in:
Michael Hansen 2024-09-28 17:46:01 -05:00 committed by GitHub
parent 545dae2e7f
commit fbeee11fd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,7 +133,7 @@ class EsphomeAssistSatellite(
# Empty config. Updated when added to HA.
self._satellite_config = assist_satellite.AssistSatelliteConfiguration(
available_wake_words=[], active_wake_words=[], max_active_wake_words=0
available_wake_words=[], active_wake_words=[], max_active_wake_words=1
)
@property
@ -179,7 +179,13 @@ class EsphomeAssistSatellite(
async def _update_satellite_config(self) -> None:
"""Get the latest satellite configuration from the device."""
config = await self.cli.get_voice_assistant_configuration(_CONFIG_TIMEOUT_SEC)
try:
config = await self.cli.get_voice_assistant_configuration(
_CONFIG_TIMEOUT_SEC
)
except TimeoutError:
# Placeholder config will be used
return
# Update available/active wake words
self._satellite_config.available_wake_words = [