-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Improve Ikea Idasen config flow error messages #101567
Conversation
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
2a88370
to
9d1d60e
Compare
I think this could also go into a point release for the current one, as we got quite a few user report just in the first days after release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @abmantis 👍
../Frenck
@@ -64,6 +64,9 @@ async def async_step_user( | |||
desk = Desk(None) | |||
try: | |||
await desk.connect(discovery_info.device, monitor_height=False) | |||
except AuthFailedError as err: | |||
_LOGGER.exception("AuthFailedError", exc_info=err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using both the exception
logging method and exc_info
isn't needed.
We normally don't log the stack trace if the exception is known.
Proposed change
There are a few issues with bleak with bluez, that don't manifest when using ESPHome BT Proxy.
One of them is the lack of an agent on bleak (hbldh/bleak#1434)
which is already mentioned on the docs (home-assistant/home-assistant.io#29207).
With ESPHome, it works.
Another difference is that when using ESPHome BT Proxy, the desk pairs even if it is not
in pairing mode anymore, while this does not happen with bleak/bluez.
Also, bleak/bluez fails to connect a lot more often than ESPHome.
Diff for dependecy update: abmantis/idasen-ha@1.4...1.4.1
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: