Legacy template entities (alarm_control_panel, binary_sensor, cover, fan, light, lock, sensor, switch, vacuum, weather) are being deprecated in 2025.12. Legacy template entities will no longer work after 2026.6 See: Legacy template deprecation migration guide
This issue also impacts my Home Assistant Airtag Integration. It can be ignored temporarily but must be resolved for the long term.

Good thing is, that HomeAssistant is actually suggesting you on how to repair this by indicating Reapir is required. See Settings -> System -> Repair. More info on Repairs – Home Assistant

The code will need to be added to your template.yml file, make sure the template.yml file is referenced in your configuration.yml file
template: !include template.yaml## Airtag Integration ##
- sensor:
- default_entity_id: sensor.airtag_rosa
icon: mdi:account-circle
attributes:
latitude: '{% if ":" in states(''input_text.airtag'').split(''Rosa'')[1].split(''•'')[0]
%}null {% else %}{{ state_attr(''sensor.airtag_rosa_geo'',''lat'') }} {% endif
%}'
longitude: '{% if ":" in states(''input_text.airtag'').split(''Rosa'')[1].split(''•'')[0]
%}null {% else %}{{ state_attr(''sensor.airtag_rosa_geo'',''lon'') }} {% endif
%}'
status: '{% if ":" in states(''input_text.airtag'').split(''Rosa'')[1].split(''•'')[0]
%}unavailable {% else %}available {% endif %}'
last_update: '{{ as_timestamp(states.input_text.airtag.last_updated)|timestamp_custom
(''%d/%m/%Y %H:%Mh'') }}'
name: Rosa
state: '{% set home = "Privat" %} {% if ":" in states(''input_text.airtag'').split(''Rosa'')[1].split(''•'')[0]
%} {{ states(''input_text.airtag'').split(''Rosa'')[1].split(''•'')[0].split('','')[0]
}} {% elif home in states(''input_text.airtag'').split(''Rosa'')[1].split(''•'')[0]
%}Home {% else %} {{ states(''sensor.airtag_rosa_geo'') }} {% endif %}'Restart Home Assistant or Reload Entities to complete the reconfiguration.