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

I just installed with misquitto mqtt on home assistant and get the following error when I try to start blueti-mqtt #107

Open
ceredoandy opened this issue Mar 14, 2024 · 5 comments · May be fixed by #108

Comments

@ceredoandy
Copy link

We renamed asyncio-mqtt to aiomqtt and released a version 1.0.0 in the process. This is the last release under the asyncio-mqtt name.
2024-03-14 13:50:27 INFO Connecting to MQTT broker...
Exception ignored in: <function Client.del at 0x0000023170937100>
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\site-packages\paho\mqtt\client.py", line 874, in del
self._reset_sockets()
File "C:\Program Files\Python312\Lib\site-packages\paho\mqtt\client.py", line 1133, in _reset_sockets
self._sock_close()
File "C:\Program Files\Python312\Lib\site-packages\paho\mqtt\client.py", line 1119, in _sock_close
if not self._sock:
^^^^^^^^^^
AttributeError: 'Client' object has no attribute '_sock'
2024-03-14 13:50:27 INFO Starting to poll clients...
2024-03-14 13:50:27 ERROR Crashing with uncaught exception:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\site-packages\bluetti_mqtt\mqtt_client.py", line 513, in run
async with Client(
^^^^^^^
File "C:\Program Files\Python312\Lib\site-packages\asyncio_mqtt\client.py", line 298, in init
self._client: mqtt.Client = mqtt.Client(
^^^^^^^^^^^^
TypeError: Client.init() missing 1 required positional argument: 'callback_api_version'
2024-03-14 13:50:27 INFO Connecting to clients: ['70:B8:F6:81:A7:66']
2024-03-14 13:50:27 INFO Shutting down...

@shbatm
Copy link

shbatm commented Mar 16, 2024

Seeing the same issue connecting to Home Assistant Addon.

Seems like it's related to: eclipse-paho/paho.mqtt.python#814

@chaoszone
Copy link

Has anyone found a fix yet?

@shbatm
Copy link

shbatm commented Apr 5, 2024

Working with my Pull Request here if you want to use that version for now:

#108

@chaoszone
Copy link

How do I get your version into my HA instance?

@ftrueck
Copy link

ftrueck commented Apr 9, 2024

I am currently preparing of creating a separate addon and a separate github fork for a more updated version of the underlying library. Not sure how long it will take until I am done but I have the same Issues as you guys and I am kind of tired waiting for the original maintainers to wake up from their winter sleep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants