mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Revert nest reloading due to lock up (#63206)
This commit is contained in:
parent
20150daf1e
commit
ebc8e19788
@ -189,10 +189,7 @@ class SignalUpdateCallback:
|
|||||||
async def async_handle_event(self, event_message: EventMessage) -> None:
|
async def async_handle_event(self, event_message: EventMessage) -> None:
|
||||||
"""Process an incoming EventMessage."""
|
"""Process an incoming EventMessage."""
|
||||||
if event_message.relation_update:
|
if event_message.relation_update:
|
||||||
# A device was added/removed or a home was added/removed. Reload the integration
|
_LOGGER.info("Devices or homes have changed; Need reload to take effect")
|
||||||
# in order to detect any changes.
|
|
||||||
_LOGGER.info("Devices or homes have changed; Reloading")
|
|
||||||
self._hass.async_create_task(self._config_reload_cb())
|
|
||||||
return
|
return
|
||||||
if not event_message.resource_update_name:
|
if not event_message.resource_update_name:
|
||||||
return
|
return
|
||||||
|
@ -506,6 +506,6 @@ async def test_structure_update_event(hass):
|
|||||||
# No home assistant events published
|
# No home assistant events published
|
||||||
assert not events
|
assert not events
|
||||||
|
|
||||||
# Both enties now exist
|
|
||||||
assert registry.async_get("camera.front")
|
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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user