Removal of Z-Wave nodes leave orphaned entities/devices behind

https://github.com/home-assistant/home-assistant/issues/18795

I’m running a fresh installation of 0.97.2, so this bug should be already fixed. Unfortunately after excluding a zwave device it still retains its entities/devices, even after HASS restart.
What’s even stranger is that manually purging those entries from /config/.storage/core.device_registry and /config/.storage/core.entity_registry fixes the problem ONLY until the device gets re-included: as soon as you re-include it all the old entities/devices will be back once again. Why?

1 Like