Skip to content

Deprecation of the obsolete sensor model #65

@Jones1982

Description

@Jones1982

Hello,
after the last update (Core 2025.12.0 - Supervisor 2025.11.5 ), this warning appeared:

Deprecation of the obsolete sensor model
Attention · Reported by Template
This stops working in version 2026.6. Please fix this issue before upgrading.
The obsolete syntax platform: templatefor sensoris being removed. Please migrate crypto_totalto the modern template syntax.

Remove the existing template definition.
Add new template definition:

template:
- sensor:
  - unit_of_measurement: "{{ expand(integration_entities('cryptoinfo'))\n    | map(attribute='attributes.unit_of_measurement')\n
      \   | list | default(['$'], true)\n    | first }}\n"
    default_entity_id: sensor.crypto_total
    name: Total my crypto
    state: "{{ integration_entities('cryptoinfo')\n    | map('states')\n    | map('float',
      0)\n    | sum | round(2) }}"

Restart Home Assistant or reload the model entities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions