diff --git a/homeassistant/components/tts/__init__.py b/homeassistant/components/tts/__init__.py index b7d3b4f1f4c..6dc2e9b7d45 100644 --- a/homeassistant/components/tts/__init__.py +++ b/homeassistant/components/tts/__init__.py @@ -399,7 +399,7 @@ class SpeechManager: @callback def async_remove_from_mem(): """Cleanup memcache.""" - self.mem_cache.pop(key) + self.mem_cache.pop(key, None) self.hass.loop.call_later(self.time_memory, async_remove_from_mem)