mirror of
https://github.com/home-assistant/core.git
synced 2026-09-01 18:24:52 -05:00
Merge pull request #5473 from stu-gott/tts-cache
TTS: Invalidate broken file cache entries
This commit is contained in:
@@ -346,6 +346,7 @@ class SpeechManager(object):
|
||||
try:
|
||||
data = yield from self.hass.loop.run_in_executor(None, load_speech)
|
||||
except OSError:
|
||||
del self.file_cache[key]
|
||||
raise HomeAssistantError("Can't read {}".format(voice_file))
|
||||
|
||||
self._async_store_to_memcache(key, filename, data)
|
||||
|
||||
Reference in New Issue
Block a user