Skip to content

Conversation

@HarshCasper
Copy link
Member

This PR adds mqtt.CallbackAPIVersion.VERSION1 as first argument to Client() to fix the tests.

Copy link
Contributor

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mqtt = mqtt_client.Client("mqtt_subscriber")
mqtt = mqtt_client.Client(
mqtt_client.CallbackAPIVersion.VERSION1, "mqtt_subscriber"
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also consider pinning paho-mqtt in requirements.txt

mqtt_publisher.enable_logger(_logger)
mqtt_publisher.loop_start()
mqtt_publisher._thread.name = f'mqtt_thread_publisher' # noqa
mqtt_publisher._thread.name = f"mqtt_thread_publisher" # noqa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this to be an f-string when there's no interpolation?

@HarshCasper HarshCasper merged commit 5e013c4 into master May 21, 2024
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 this pull request may close these issues.

3 participants