Fix exception in callback async_remove_from_mem (#34075)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>pull/36396/head
parent
4180106125
commit
5ba610859d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue