[Fix] Always initialize AssistantPlugin._conversation_start_sound.

This commit is contained in:
Fabio Manganiello 2023-10-23 23:31:28 +02:00
parent 4a881c33d0
commit 42912581f9

View file

@ -85,6 +85,7 @@ class AssistantPlugin(Plugin, AssistantEntityManager, ABC):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.tts_plugin = tts_plugin self.tts_plugin = tts_plugin
self.tts_plugin_args = tts_plugin_args or {} self.tts_plugin_args = tts_plugin_args or {}
self._conversation_start_sound = None
if conversation_start_sound: if conversation_start_sound:
self._conversation_start_sound = os.path.abspath( self._conversation_start_sound = os.path.abspath(
os.path.expanduser(conversation_start_sound) os.path.expanduser(conversation_start_sound)