Fix exception in callback async_remove_from_mem (#34075)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
baurandr
2020-06-02 19:46:17 -04:00
committed by GitHub
parent 4180106125
commit 5ba610859d

View File

@@ -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)