Nest component keeps showing errors for cameras it is not allowed to access anymore (0.79.1)

I set up my integration with full access to also my nest cameras. Later I removed the camera access in the API and now the cameras keep showing up as person detection, sound detection etc … and in the dashboard where earlier the image feed was shown is now an error message “Unnamed device image not available” for each camera.

I removed the component completely, checked the core.config_entries (everything nest related was removed), did a re-auth … and everything comes back just like before.

The debug log shows nothing strange:

018-10-01 22:28:52 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting 2018-10-01 22:29:11 DEBUG (SyncWorker_19) [nest.nest] >> POST https://api.home.nest. com/oauth2/access_token 2018-10-01 22:29:12 DEBUG (SyncWorker_19) [nest.nest] << 200 2018-10-01 22:29:12 DEBUG (MainThread) [homeassistant.components.nest] proceeding with setup 2018-10-01 22:29:12 INFO (SyncWorker_18) [nest.nest] Open data stream 2018-10-01 22:29:12 DEBUG (SyncWorker_18) [nest.nest] >> STREAM https:// developer-api.nest. com/ 2018-10-01 22:29:12 DEBUG (SyncWorker_18) [nest.nest] << 307 2018-10-01 22:29:12 DEBUG (SyncWorker_18) [nest.nest] >> STREAM https:// firebase-apiserver03-tah01-iad01.dapi.production.nest.com:9553/ 2018-10-01 22:29:13 DEBUG (SyncWorker_18) [nest.nest] << 200 2018-10-01 22:29:13 DEBUG (Thread-6) [nest.nest] Starting event loop. 2018-10-01 22:29:13 DEBUG (Thread-6) [sseclient] Initialized SSE client from event source <generator object Response.iter_content.<locals>.generate at 0x7f1793db3150> 2018-10-01 22:29:13 DEBUG (Thread-6) [sseclient] Dispatching put event, 6192 bytes… 2018-10-01 22:29:13 DEBUG (Thread-6) [nest.nest] <<< put event 2018-10-01 22:29:13 INFO (SyncWorker_18) [nest.nest] Event loop started. 2018-10-01 22:29:13 DEBUG (MainThread) [homeassistant.components.nest] async_setup_nest is done

So how can I have the nest component enabled for my smoke detectors only and forget about the cameras I have in my account but have no access to via the API.

Nest entities have saved into .storage/core.entity_registry since 0.79

If you removed Nest component from config_entries, you need remove them from entity_registry as well.

I am going to open up a pull request to fix that in next release.

That would definately be a nice improvement. Looking forward to the fix.Thanks!