Help, device_type: timestamp ... but it's not!

Hi all, I have 3 sensors set up, 2 of them are fine, however 1 isn’t. I’ve removed device_class from all 3 but when I look at the Developer tools / States, the device_class is still there.

I have done several reboots and checked my customize.yaml and there is no mention of it.

Any ideas?

Thanks.

    sensors:
      leaf_next_update:
        friendly_name: 'Leaf Next Update'
        value_template: "{{ as_timestamp(state_attr('sensor.l333ond_range', 'next_update')) | timestamp_custom('%H:%M') }}"
        unique_id: "96786442132"
      leaf_last_attempt:
        friendly_name: 'Leaf Previous Attempt'
        value_template: "{{ as_timestamp(state_attr('sensor.l333ond_range', 'last_attempt')) | timestamp_custom('%H:%M') }}"
        unique_id: "21348946672"
      leaf_last_update:
        friendly_name: 'Leaf Last Update'
        value_template: "{{ as_timestamp(state_attr('sensor.l333ond_range', 'updated_on')) | timestamp_custom('%H:%M') }}"
        unique_id: "46346789212"

All help is appreciated, thanks.

It has a unique_id, the device_class is attached in the entity_registry. Remove the sensor from your configuration. Restart. Delete the entity from the entity list. Shut down. Add your sensor back. Start.
Profit.

1 Like

Excellent post my friend … Done, fixed, sorted.

Thanks.

1 Like