How too delete attributes vom device_tracker entity

With the new update of the iOS App I turned on gps location, because there is an annoying bug (see here 196)

I soon switched it off again, because it drains my battery.

Now I still have those lattidude and longitude attributes in my device_tracker entity.

I tried the following without success:

  • comment out/in device tracker in config.yaml to turn the component on and off

  • I deleted the home-assistant_v2.db file

  • I looked for the entity in the core files in .storage and found it in core.restore_state. I deletet those lines. But they reappear.

So how can I get rid of those attributes, because they keep a device home that actually isn’t.

Nevermind, stop home assistant and deleting those lines in core.restore.state worked.
I forgot too change the state too.

EDIT: Unfortunately I still get the gps attributes in my devicetracker. I do not have that option activated for ha on my phone, so this must be old data.

How do I get rid of it?
Deleting it from core.restore_state did not work

I figured it out, it takes the gps coordinates from the config.yaml file

CLOSED