From ebc8e197884543600d9c6ba87742ca557cb668f1 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Sun, 2 Jan 2022 08:08:38 -0800 Subject: [PATCH] Revert nest reloading due to lock up (#63206) --- homeassistant/components/nest/__init__.py | 5 +---- tests/components/nest/test_events.py | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/nest/__init__.py b/homeassistant/components/nest/__init__.py index bb5edefc2ca..038fa0f66ea 100644 --- a/homeassistant/components/nest/__init__.py +++ b/homeassistant/components/nest/__init__.py @@ -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 diff --git a/tests/components/nest/test_events.py b/tests/components/nest/test_events.py index 0c4496603bd..d5c6c744284 100644 --- a/tests/components/nest/test_events.py +++ b/tests/components/nest/test_events.py @@ -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")