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

MQTT - Callback API version 1 is deprecated #19

Open
joelegg opened this issue Sep 6, 2024 · 3 comments
Open

MQTT - Callback API version 1 is deprecated #19

joelegg opened this issue Sep 6, 2024 · 3 comments

Comments

@joelegg
Copy link

joelegg commented Sep 6, 2024

hi there -

really keen to try this out.

I am running haos in a vmm which includes mqtt as an add on

I have frigate talking to mqtt fine

I run amble gpt and get this error:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection
sock.connect(sa)
TimeoutError: timed out
/app/./mqtt_client.py:429: DeprecationWarning: Callback API version 1 is deprecated, update to latest version
client = mqtt.Client()

any idea how to fix this one ?

thank you

@mhaowork
Copy link
Owner

Your request timed out presumably due to network problems. I don't think it's related to the warning.

@mesencephalon
Copy link

mesencephalon commented Sep 23, 2024

It works great but I get this error all the time. It doesnt affect functionality though. Would that be related to the major update to the paho mqtt in Feb 2024, they recommend updating the code

@zeppelinlg
Copy link
Contributor

Hello
This is a PR with update for mqtt to the new API version. #24

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

No branches or pull requests

4 participants