Skip to content

Migrate sabnzbd sensors unique ids#71455

Merged
MartinHjelmare merged 9 commits intohome-assistant:devfrom
shaiu:sabnzbd_migrate_unique_id
May 9, 2022
Merged

Migrate sabnzbd sensors unique ids#71455
MartinHjelmare merged 9 commits intohome-assistant:devfrom
shaiu:sabnzbd_migrate_unique_id

Conversation

@shaiu
Copy link
Copy Markdown
Contributor

@shaiu shaiu commented May 6, 2022

Proposed change

  1. migrate sensors to have unique id constructed also from entry_id
  2. add migration flow in init
  3. bump config flow to version 2
  4. add tests for migration

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the [development checklist][dev-checklist]
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

To help with the load of incoming pull requests:

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @GitHub-Action,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@shaiu shaiu force-pushed the sabnzbd_migrate_unique_id branch from c0fc0f1 to 95c28ca Compare May 7, 2022 19:38
@homeassistant
Copy link
Copy Markdown
Contributor

Hi @GitHub-Action,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@shaiu shaiu force-pushed the sabnzbd_migrate_unique_id branch from 95c28ca to b05231c Compare May 7, 2022 19:39
shaiu added 2 commits May 7, 2022 22:44
1. migrate sensors to have unique id constructed also from entry_id
2. add migration flow in init
3. bump config flow to version 2
4. add tests for migration
@shaiu shaiu force-pushed the sabnzbd_migrate_unique_id branch from b05231c to faa57c9 Compare May 7, 2022 19:44
@shaiu
Copy link
Copy Markdown
Contributor Author

shaiu commented May 7, 2022

@gjohansson-ST moved it to setup_entry.
Can you please review?

shaiu added 3 commits May 8, 2022 23:02
2. Set up the config entry and not use integration directly
3. remove patch for entity registry
@shaiu shaiu requested a review from MartinHjelmare May 8, 2022 20:15
shaiu and others added 4 commits May 9, 2022 10:18
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
@shaiu shaiu requested a review from MartinHjelmare May 9, 2022 07:19
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MartinHjelmare MartinHjelmare added this to the 2022.5.4 milestone May 9, 2022
@MartinHjelmare MartinHjelmare changed the title Migrate sensors unique ids Migrate zabnzbd sensors unique ids May 9, 2022
@MartinHjelmare MartinHjelmare changed the title Migrate zabnzbd sensors unique ids Migrate sabnzbd sensors unique ids May 9, 2022
@MartinHjelmare MartinHjelmare merged commit f50681e into home-assistant:dev May 9, 2022
@shaiu shaiu deleted the sabnzbd_migrate_unique_id branch May 9, 2022 07:54
@github-actions github-actions bot locked and limited conversation to collaborators May 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants