Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple integrations have copied a design mistake I made for Bluetooth devices #137114

Open
21 of 44 tasks
bdraco opened this issue Feb 1, 2025 · 45 comments
Open
21 of 44 tasks

Comments

@bdraco
Copy link
Member

bdraco commented Feb 1, 2025

The problem

Every few days we get an issue report about a device a user ignored and forgot about, and than can no longer get set up. Sometimes its a govee device, sometimes its a switchbot device, but the pattern is consistent.

Allow ignored devices to be selected in the user step and replace the ignored entry.

Note that some non-bluetooth devices have the same issue

  • homeassistant/components/wiz/config_flow.py: current_unique_ids = self._async_current_ids()
  • homeassistant/components/steamist/config_flow.py: current_unique_ids = self._async_current_ids()
  • Allow ignored screenlogic devices to be set up from the user flow #137315 homeassistant/components/screenlogic/config_flow.py: existing = self._async_current_ids()
  • homeassistant/components/onkyo/config_flow.py: current_unique_ids = self._async_current_ids()
  • Allow ignored IronOS devices to be set up from the user flow #138223 homeassistant/components/iron_os/config_flow.py: current_addresses = self._async_current_ids()
  • homeassistant/components/energenie_power_sockets/config_flow.py: currently_configured = self._async_current_ids(include_ignore=True)
  • homeassistant/components/elkm1/config_flow.py: current_unique_ids = self._async_current_ids()
  • homeassistant/components/asuswrt/config_flow.py: for unique_id in self._async_current_ids()

What version of Home Assistant Core has the issue?

dev

What was the last working version of Home Assistant Core?

dev

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

Hey there @vincegio, @LaStrada, mind taking a look at this issue as it has been labeled with an integration (airthings_ble) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of airthings_ble can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign airthings_ble Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


airthings_ble documentation
airthings_ble source
(message by IssueLinks)

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

Hey there @aschmitz, @thecode, @Anrijs, mind taking a look at this issue as it has been labeled with an integration (aranet) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of aranet can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign aranet Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


aranet documentation
aranet source
(message by IssueLinks)

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

Hey there @emontnemery, mind taking a look at this issue as it has been labeled with an integration (improv_ble) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of improv_ble can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign improv_ble Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


improv_ble documentation
improv_ble source
(message by IssueLinks)

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

Hey there @bdr99, mind taking a look at this issue as it has been labeled with an integration (eufylife_ble) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of eufylife_ble can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign eufylife_ble Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


eufylife_ble documentation
eufylife_ble source
(message by IssueLinks)

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

Hey there @elupus, mind taking a look at this issue as it has been labeled with an integration (gardena_bluetooth) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of gardena_bluetooth can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign gardena_bluetooth Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


gardena_bluetooth documentation
gardena_bluetooth source
(message by IssueLinks)

@home-assistant
Copy link

home-assistant bot commented Feb 1, 2025

Hey there @Lash-L, mind taking a look at this issue as it has been labeled with an integration (oralb) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of oralb can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign oralb Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


oralb documentation
oralb source
(message by IssueLinks)

bdraco added a commit that referenced this issue Feb 4, 2025
almost same fix as the others for #137114 except we previously
gave them a hint that they had an ignored adapter and aborted,
now we simply replace it instead of making them figure out how
to unignore it and set it up.
@sbidy
Copy link
Contributor

sbidy commented Mar 19, 2025

Hey @bdraco could you please help me (again) to create a test for this for the Wiz integration?
https://github.com/home-assistant/core/blob/dev/tests/components/wiz/test_config_flow.py

It seems I have the issue too ->

current_unique_ids = self._async_current_ids()

Thank you for your help ... I'm terrible in writing tests especially for hass 😒

@thecode
Copy link
Member

thecode commented Mar 21, 2025

Hey @bdraco could you please help me (again) to create a test for this for the Wiz integration? https://github.com/home-assistant/core/blob/dev/tests/components/wiz/test_config_flow.py

It seems I have the issue too ->

core/homeassistant/components/wiz/config_flow.py

Line 127 in 100e442

current_unique_ids = self._async_current_ids()
Thank you for your help ... I'm terrible in writing tests especially for hass 😒

Can you make a PR to try to fix it? than we can try to help with a test on the PR, also try to make a test if you can, #137315 can be used as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment