We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab8556 commit 519b020Copy full SHA for 519b020
src/compas_eve/mqtt/mqtt_paho.py
@@ -34,7 +34,7 @@ def __init__(self, host, port=1883, client_id=None, *args, **kwargs):
34
self._local_callbacks = {}
35
# Generate client ID if not provided
36
if client_id is None:
37
- client_id = f"compas_eve_{uuid.uuid4().hex[:8]}"
+ client_id = "compas_eve_{}".format(uuid.uuid4().hex[:8])
38
if PAHO_MQTT_V2_AVAILABLE:
39
self.client = mqtt.Client(client_id=client_id, callback_api_version=CallbackAPIVersion.VERSION1)
40
else:
0 commit comments