Revert nest reloading due to lock up (#63206)

This commit is contained in:
Allen Porter 2022-01-02 08:08:38 -08:00 committed by GitHub
parent 20150daf1e
commit ebc8e19788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -189,10 +189,7 @@ class SignalUpdateCallback:
async def async_handle_event(self, event_message: EventMessage) -> None:
"""Process an incoming EventMessage."""
if event_message.relation_update:
# A device was added/removed or a home was added/removed. Reload the integration
# in order to detect any changes.
_LOGGER.info("Devices or homes have changed; Reloading")
self._hass.async_create_task(self._config_reload_cb())
_LOGGER.info("Devices or homes have changed; Need reload to take effect")
return
if not event_message.resource_update_name:
return

View File

@ -506,6 +506,6 @@ async def test_structure_update_event(hass):
# No home assistant events published
assert not events
# Both enties now exist
assert registry.async_get("camera.front")
assert registry.async_get("camera.back")
# Currently need a manual reload to detect the new entity
assert not registry.async_get("camera.back")