I was going to say it probably doesn’t survive a restart but, surprise, it does.
Now that I have created it, I’m trying to find a way to delete it …
The entity doesn’t have a unique_id so it can’t be deleted via the UI.
It wasn’t created via YAML so there’s no configuration to delete.
It has no associated Device Tracker integration so it can’t be deleted via Settings → Devices & Services → Integrations → ???
I ended up manually deleting references to it in the following files and then restarting.
known_devices.yaml
homeassistant.exposed_entities
Given the challenge of deleting it, my guess is that the service call wasn’t meant for creating a device_tracker entity (because if it was, they overlooked to make it easy to delete the entity).
Interesting. It wasn’t enough in my case, even after performing a Ctrl+F5 in my browser to ensure I wasn’t looking at cached data. It only disappeared after editing the JSON in the second file. Maybe my testing procedure was flawed and I saw a false positive some how. Anyways, I won’t be experimenting with that service call again.