Skip to content

Commit 73e3ff3

Browse files
Merge pull request #26 from mattlongman/patch-2
Update __init__.py
2 parents 9149323 + 95caa8f commit 73e3ff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/remote_homeassistant/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def fire_event(message):
389389
if not data['new_state']:
390390
entity_id = self._prefixed_entity_id(entity_id)
391391
# entity was removed in the remote instance
392-
with suppress(ValueError, AttributeError):
392+
with suppress(ValueError, AttributeError, KeyError):
393393
self._entities.remove(entity_id)
394394
self._hass.states.async_remove(entity_id)
395395
return

0 commit comments

Comments
 (0)