Skip to content

Entities naming - duplicate "maint" prefix. #39

Description

@Masterz69

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

From some point of view assigned entity name have maint prefix added twice.
Device name set to empty. Friendly names have Maint once all the times so far.

Image

Reproduction steps

No idea what to do to reproduce.
Couple tasks created with single maint prefix, then it started to appear twice.

Debug logs

2026-06-26 20:51:51.429 DEBUG (MainThread) [custom_components.maint.models] Listing Maint tasks for entry 01KW1FRRN9MME4TP5X6Z70WCQE (6 tasks)
2026-06-26 20:51:51.429 DEBUG (MainThread) [custom_components.maint.websocket] Websocket list tasks for Maint entry 01KW1FRRN9MME4TP5X6Z70WCQE: 6 tasks
2026-06-26 20:52:04.475 DEBUG (MainThread) [custom_components.maint.models] Saved Maint tasks: 1 entries, 7 tasks
2026-06-26 20:52:04.478 DEBUG (MainThread) [custom_components.maint.sensor] Resolved binary sensor for task e63021e4466e41e19ae705a39dd9f3ae on entry 01KW1FRRN9MME4TP5X6Z70WCQE to binary_sensor.maint_l20_water_meters_to_modulis1
2026-06-26 20:52:04.478 DEBUG (MainThread) [custom_components.maint.models] Created Maint task b9e03a11c88044bbb5be678631580855 for entry 01KW1FRRN9MME4TP5X6Z70WCQE (freq=interval 2026-06-27)
2026-06-26 20:52:04.480 DEBUG (MainThread) [custom_components.maint.websocket] Websocket created Maint task b9e03a11c88044bbb5be678631580855 for entry 01KW1FRRN9MME4TP5X6Z70WCQE
2026-06-26 20:52:09.884 DEBUG (MainThread) [custom_components.maint.sensor] Resolved binary sensor for task e63021e4466e41e19ae705a39dd9f3ae on entry 01KW1FRRN9MME4TP5X6Z70WCQE to binary_sensor.maint_l20_water_meters_to_modulis1
2026-06-26 20:52:38.451 DEBUG (MainThread) [custom_components.maint.models] Listing Maint tasks for entry 01KW1FRRN9MME4TP5X6Z70WCQE (7 tasks)
2026-06-26 20:52:38.452 DEBUG (MainThread) [custom_components.maint.websocket] Websocket list tasks for Maint entry 01KW1FRRN9MME4TP5X6Z70WCQE: 7 tasks
2026-06-26 20:52:39.885 DEBUG (MainThread) [custom_components.maint.sensor] Resolved binary sensor for task e63021e4466e41e19ae705a39dd9f3ae on entry 01KW1FRRN9MME4TP5X6Z70WCQE to binary_sensor.maint_l20_water_meters_to_modulis1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting triage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions