Files
volvo2mqtt/src/main.py
T
Linus DietzandGitHub 075102c574 Allow multiple vcc api keys (#85)
* Multiple vccapikeys function

* Reduce api calls for key checks

* Change sleeptime

* Optimize logging

* Format log datetime

* Change default conf

* Set device offline, if no working vcc api key can be found

* Fix climate scheduler

* Only redact sensitive data if debug is enabled
2023-08-17 10:43:03 +02:00

16 lines
358 B
Python

import logging
from volvo import authorize
from mqtt import update_loop, connect
from const import VERSION
from util import set_tz, setup_logging, set_mqtt_settings
if __name__ == '__main__':
set_tz()
set_mqtt_settings()
setup_logging()
logging.info("Starting volvo2mqtt version " + VERSION)
connect()
authorize()
update_loop()