diff --git a/shellyteacher4domo.py b/shellyteacher4domo.py index db10802..15c99fd 100755 --- a/shellyteacher4domo.py +++ b/shellyteacher4domo.py @@ -10,6 +10,9 @@ class MQTTClient(mqtt.Client): # Gen1 detailed infos and Gen2 alive subscribechannel = "" + def _on_pre_connect(self, func): + pass + def on_connect(self, client, userdata, flags, rc): try: self.subscribe(self.subscribechannel,0) @@ -55,6 +58,9 @@ def on_message(self, mqttc, obj, msg): class MQTTClientOnlineCheck(mqtt.Client): #Gen2 hack to get some infos... subscribechannel = "" + def _on_pre_connect(self, func): + pass + def on_connect(self, client, userdata, flags, rc): try: self.subscribe(self.subscribechannel,0)