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

DeprecationWarning: Callback API version 1 is #8

Open
trutru21 opened this issue Feb 5, 2025 · 2 comments
Open

DeprecationWarning: Callback API version 1 is #8

trutru21 opened this issue Feb 5, 2025 · 2 comments

Comments

@trutru21
Copy link

trutru21 commented Feb 5, 2025

Hello!

Firstly - I want to express my gratitude towards the creator of this script. This is the only method that works with the newest Hisense TV's with upgraded firmware. You're the best - THANK YOU!

The reason I am opening this ticket is a warning I receive in Home Assistant when using this script:

"/config/deps/hisense.py:162: DeprecationWarning: Callback API version 1 is
deprecated, update to latest version
client = mqtt.Client(client_id=client_id, clean_session=True, userdata=userdata, protocol=mqtt.MQTTv311, transport="tcp")"

The script is working fine with this warning but maybe it is worth to future-proof it?

I tried to fix this but my python skills are very basic and I failed.

@nikagl
Copy link
Owner

nikagl commented Feb 6, 2025

I have tried to fix it too, but it seems the hisense stuff does not allow a newer version of the mqtt client and I stopped investigating because it still works ;-) Maybe someone else knows 🤷‍♂️

@jamesmule
Copy link

jamesmule commented Feb 6, 2025

I have callback_api_version=CallbackAPIVersion.VERSION2 working in my script, but our models probably have different firmware.

if time:
   will_check_again()

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

3 participants