Update Docker/src/python/tHome/broker/connect.py
All checks were successful
Build and publish Image / build-and-push (push) Successful in 12s
All checks were successful
Build and publish Image / build-and-push (push) Successful in 12s
This commit is contained in:
@@ -7,10 +7,10 @@ from . import config
|
|||||||
import paho.mqtt.client as mqtt
|
import paho.mqtt.client as mqtt
|
||||||
|
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
class Client( mqtt.Client ):
|
class Client( mqtt.Client(mqtt.CallbackAPIVersion.VERSION1) ):
|
||||||
"""Logging client
|
"""Logging client
|
||||||
"""
|
"""
|
||||||
def __init__( mqtt.CallbackAPIVersion.VERSION1, self, log=None ):
|
def __init__( self, log=None ):
|
||||||
mqtt.Client.__init__( self )
|
mqtt.Client.__init__( self )
|
||||||
self._logger = log
|
self._logger = log
|
||||||
# Restore callbacks overwritten by stupid mqtt library
|
# Restore callbacks overwritten by stupid mqtt library
|
||||||
|
|||||||
Reference in New Issue
Block a user