Skip to content

async_add_external_statistics is missing unit_class #306

Description

@GuyKh

System Health details

2026-02-08 21:30:02.426 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'iec' doesn't specify unit_class when calling async_add_external_statistics at custom_components/iec/coordinator.py, line 1083: async_add_external_statistics(. This will stop working in Home Assistant 2026.11, please create a bug report at https://github.com/guykh/iec-custom-component/issues
2026-02-08 21:30:02.441 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'iec' doesn't specify unit_class when calling async_add_external_statistics at custom_components/iec/coordinator.py, line 1087: async_add_external_statistics(self.hass, cost_metadata, cost_statistics). This will stop working in Home Assistant 2026.11, please create a bug report at https://github.com/guykh/iec-custom-component/issues

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

.

Reproduction steps

2026-02-08 21:30:02.426 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'iec' doesn't specify unit_class when calling async_add_external_statistics at custom_components/iec/coordinator.py, line 1083: async_add_external_statistics(. This will stop working in Home Assistant 2026.11, please create a bug report at https://github.com/guykh/iec-custom-component/issues
2026-02-08 21:30:02.441 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'iec' doesn't specify unit_class when calling async_add_external_statistics at custom_components/iec/coordinator.py, line 1087: async_add_external_statistics(self.hass, cost_metadata, cost_statistics). This will stop working in Home Assistant 2026.11, please create a bug report at https://github.com/guykh/iec-custom-component/issues

Debug logs

.

Diagnostics dump

No response

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