Skip to content

[Core] ZHA migration flow fails if old adapter is unplugged #59

@TheJulianJES

Description

@TheJulianJES

Problem

With the new ZHA migration flow in HA Core, we now require both the old and new adapter to be plugged in the entire time.
Only after a successful from old adapter to the new one do we now perform a reset. This means the old adapter still has to be plugged in at the end of the migration flow, or it blows up.

Some devices also have a limited amount of USB ports. This could also lead to users unplugging the old adapter at the start of the migration.

Before

In previous versions of the migration, we instructed the user to unplug the adapter at the start of the migration, where we performed a reset. Afterwards, we instructed users to then plug in the new adapter. (It could also be plugged in the entire time).

Solution

For a quick solution, we should be able to only perform the reset at the end of the migration flow if the old adapter is still plugged in.
For a good solution, we'll need to think about what to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions