mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix exception in callback async_remove_from_mem (#34075)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
4180106125
commit
5ba610859d
@ -399,7 +399,7 @@ class SpeechManager:
|
|||||||
@callback
|
@callback
|
||||||
def async_remove_from_mem():
|
def async_remove_from_mem():
|
||||||
"""Cleanup memcache."""
|
"""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)
|
self.hass.loop.call_later(self.time_memory, async_remove_from_mem)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user