mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-21 17:06:18 +00:00
fix: #635
This commit is contained in:
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user