How to transform time_date

I had this sensor in my sensor.yaml file :

- platform: time_date
  display_options:
    - "time"
    - "date"
    - "date_time"
    - "date_time_utc"
    - "date_time_iso"
    - "time_date"
    - "time_utc"

How to migrate to the new template ?

Integrations

1 Like

You don’t. That is not a Template sensor. Only entity configurations that include platform: template need to be updated. If you don’t want to move it to the UI, as Hellis has pointed out is an option, just leave it where it is in your sensor.yaml file