Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions homeassistant/components/nest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,7 @@ def __init__(
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
Expand Down
4 changes: 2 additions & 2 deletions tests/components/nest/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")