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

This commit is contained in:
2024-03-06 23:51:02 +00:00
parent 2f12de623c
commit 54c2e5af98

View File

@@ -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