This commit is contained in:
Florian Bezannier
2023-10-29 17:47:06 +01:00
committed by Florian BEZANNIER
parent c676df2ce8
commit 5fcdd40cf4
@@ -1,6 +1,7 @@
import argparse
import atexit
import logging
import socket
import threading
from os import environ, path
@@ -65,6 +66,9 @@ class PSACarController(metaclass=Singleton):
self.chc = ChargeControls.load_config(self.myp, name=self.args.charge_control)
self.chc.init()
self.myp.start_refresh_thread()
except socket.timeout:
logger.error("Can't connect to mqtt broker your are not connected to internet or PSA MQTT server is "
"down !")
except ConfigException:
logger.error("start_remote_control failed redo otp config")