I created an extra sensor by the same name called "sensor.shed_contact_on_today", by mistake.
I am trying to get rid of the extra one which got named "sensor.shed_contact_on_today_2", but even if I deleted from my "sensor.yaml" the extra entity (saved and restarted HA) and only kept :
number of times shed contact turned on today
- platform: history_stats
name: Shed contact ON today
entity_id: binary_sensor.shed_contact_2
state: "on"
type: count
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
... if I search "sensor.shed_contact_on_today_2", it still shows up in two different places :
[core-ssh config]$ find . -type f -exec grep -l "sensor.shed_contact_on_today_2" {} +
./home-assistant_v2.db
./.storage/homeassistant.exposed_entities
How can I entirely clean this up ?