Fix exception in callback async_remove_from_mem (#34075)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
pull/36396/head
baurandr 2020-06-02 19:46:17 -04:00 committed by GitHub
parent 4180106125
commit 5ba610859d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)