Update Docker/src/python/tHome/broker/connect.py
All checks were successful
Build and publish Image / build-and-push (push) Successful in 15s

This commit is contained in:
2024-03-06 23:49:30 +00:00
parent 15341383a8
commit 2f12de623c

View File

@@ -7,10 +7,10 @@ from . import config
import paho.mqtt.client as mqtt
#===========================================================================
class Client( mqtt.Client(mqtt.CallbackAPIVersion.VERSION1) ):
class Client( mqtt.Client ):
"""Logging client
"""
def __init__( self, log=None ):
def __init__( mqtt.CallbackAPIVersion.VERSION1, self, log=None ):
mqtt.Client.__init__( self )
self._logger = log
# Restore callbacks overwritten by stupid mqtt library