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

Unable to add Adax heaters with local interface #79850

Closed
matteskonto opened this issue Oct 8, 2022 · 8 comments · Fixed by #81407
Closed

Unable to add Adax heaters with local interface #79850

matteskonto opened this issue Oct 8, 2022 · 8 comments · Fixed by #81407
Assignees

Comments

@matteskonto
Copy link

The problem

When I try to add my Adax Wifi+BLE heaters (Adax Neo) using the "Local" option the process fails with "Unknown error occurred" when I click "send" after inputing Wifi username and password.

I reset the heater, press the OK button to get the blue light flashing but cannot get further

See logs section for the error message

What version of Home Assistant Core has the issue?

2022.10.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Adax

Link to integration documentation on our website

https://www.home-assistant.io/integrations/adax

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: aiohttp.server
Source: components/adax/config_flow.py:78
First occurred: 09:01:54 (1 occurrences)
Last logged: 09:01:54

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
    result = await method(view, request, data, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 280, in async_configure
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/adax/config_flow.py", line 78, in async_step_local
    device_configured = await configurator.configure_device()
  File "/usr/local/lib/python3.10/site-packages/adax_local/__init__.py", line 141, in configure_device
    device, self._mac_id = await scan_for_available_ble_device()
  File "/usr/local/lib/python3.10/site-packages/adax_local/__init__.py", line 186, in scan_for_available_ble_device
    discovered = await bleak.discover(timeout=60)
TypeError: discover() got an unexpected keyword argument 'timeout'

Additional information

No response

@homeassistant
Copy link
Contributor

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


adax documentation
adax source
(message by IssueLinks)

@matteskonto matteskonto changed the title Unable to add Adax heaters with Local interface Unable to add Adax heaters with local interface Oct 8, 2022
@twoez
Copy link

twoez commented Oct 11, 2022

I have the exact same problem. The Adax heater I have does support both Bluetooth and Wifi. And also bluetooth is enabled inside HASS.

@matteskonto
Copy link
Author

is this a bluetooth issue? @bdraco

@sjabby
Copy link
Contributor

sjabby commented Oct 30, 2022

Same issue here:

2022-10-30 23:14:23.313 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
    result = await method(view, request, data, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 280, in async_configure
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/adax/config_flow.py", line 78, in async_step_local
    device_configured = await configurator.configure_device()
  File "/usr/local/lib/python3.10/site-packages/adax_local/__init__.py", line 141, in configure_device
    device, self._mac_id = await scan_for_available_ble_device()
  File "/usr/local/lib/python3.10/site-packages/adax_local/__init__.py", line 186, in scan_for_available_ble_device
    discovered = await bleak.discover(timeout=60)
TypeError: discover() got an unexpected keyword argument 'timeout'


@bdraco
Copy link
Member

bdraco commented Oct 31, 2022

The adax_local library needs to be updated for newer bleak

@veista

This comment was marked as duplicate.

@bdraco
Copy link
Member

bdraco commented Nov 1, 2022

🤚 I have the same issue! 👇 Read below

Hi there! Sorry to read you are experiencing the same issue as other people here. Nobody likes having issues 😞

Finding an issue on a GitHub issue tracker that matches your problem is kinda nice: At least you know you are not alone. So, let's leave a comment with: "Yeah, I have the same issue", or "+1!!!". 🚫 No!

Please do not create "I have the same issue" comments!

Not just this issue or this project, but anywhere on GitHub or any issue tracker on the internet even. It doesn't add to triaging the issue. It only generates noise when reading / triaging the case.

What to do instead?

Instead, go to the top of the issue, and add a 👍 emoji reaction. That way, we can still see that you (and how many others) experience this issue while keeping the issue threads nice and clean.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants