We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9149323 + 95caa8f commit 73e3ff3Copy full SHA for 73e3ff3
custom_components/remote_homeassistant/__init__.py
@@ -389,7 +389,7 @@ def fire_event(message):
389
if not data['new_state']:
390
entity_id = self._prefixed_entity_id(entity_id)
391
# entity was removed in the remote instance
392
- with suppress(ValueError, AttributeError):
+ with suppress(ValueError, AttributeError, KeyError):
393
self._entities.remove(entity_id)
394
self._hass.states.async_remove(entity_id)
395
return
0 commit comments