diff --git a/hc2mqtt b/hc2mqtt index 06607dd..7e42737 100755 --- a/hc2mqtt +++ b/hc2mqtt @@ -213,5 +213,6 @@ def client_connect(client, device, mqtt_topic): time.sleep(40) + if __name__ == "__main__": hc2mqtt()