bitwarden

This commit is contained in:
jaydee 2024-06-08 23:24:50 +02:00
parent 4956f7d28b
commit 524faaf09a

View File

@ -2,11 +2,11 @@
from asyncio.log import logger
import paho.mqtt
import paho.mqtt.client as mqtt
import paho.mqtt.client as mqttClient
if paho.mqtt.__version__[0] > '1':
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1)
client = mqttClient.Client(mqttClient.CallbackAPIVersion.VERSION1)
else:
client = mqtt.Client()
client = mqttClient.Client()
from getmac import get_mac_address
import platform
@ -239,7 +239,7 @@ if _PUBLISH:
else:
print("Failed to connect, return code %d\n", rc)
client = mqtt.Client(client_id)
client = mqttClient.Client(client_id)
client.username_pw_set(username, password)
client.on_connect = on_connect
client.connect(MQTT_HOST, MQTT_PORT)