mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-09 01:09:53 +02:00
Fix 'ACL denying access to client with dangerous client id'
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ active_schedules = {}
|
||||
|
||||
def connect():
|
||||
client = mqtt.Client("volvoAAOS2mqtt") if os.environ.get("IS_HA_ADDON") \
|
||||
else mqtt.Client("volvoAAOS2mqtt_" + settings.volvoData["username"])
|
||||
else mqtt.Client("volvoAAOS2mqtt_" + settings.volvoData["username"].replace("+", ""))
|
||||
|
||||
client.will_set(availability_topic, "offline", 0, False)
|
||||
if settings["mqtt"]["username"] and settings["mqtt"]["password"]:
|
||||
|
||||
Reference in New Issue
Block a user