Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Re configure not working as expected when one device previously deleted #21

@snigehere

Description

@snigehere

Thanks for the reconfigure option - you released it at an opportune time as my devices all came up as unavailable this morning so I was able to use it right away.

I have three tags and one phone. In the prior release I deleted the phone entity as it was causing clutter on the map as the phone was already tracked by the HA app. This action looks to be the cause of what I see.

I installed the new version via hacs and restarted HA. All the devices still showed as unavailable (as expected)

I went to the integration and clicked the reconfigure option

I was presented with the qr-code and scanned it to sign in - all looked good however when I went to the integration I found two hubs listed
image

And then a few minutes later got an error popup on settings
image

And on devices devices and services I got a popup
image

Of the two hubs .... one contains the old tags and is currently unavailable and the second contains device records for all 4 items but only entities for the phone

This is clearly a corner case and so I will just disable rather than delete going forward but it may be a scenario to think about....

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