mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
bitwarden
This commit is contained in:
parent
4956f7d28b
commit
524faaf09a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user