From ec3f4fc309793f70224659f339600ac5dc7192a9 Mon Sep 17 00:00:00 2001 From: jaydee Date: Sat, 8 Jun 2024 23:05:03 +0200 Subject: [PATCH] bitwarden --- playbooks/files/scripts/mqtt_srv.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/files/scripts/mqtt_srv.py b/playbooks/files/scripts/mqtt_srv.py index a430b0a..3b76384 100644 --- a/playbooks/files/scripts/mqtt_srv.py +++ b/playbooks/files/scripts/mqtt_srv.py @@ -2,6 +2,11 @@ from asyncio.log import logger import paho.mqtt.client as mqtt +try: + client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1) +except: + client = mqtt.Client() + from getmac import get_mac_address import platform import socket