mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-01 14:13:02 +02:00
* 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
16 lines
358 B
Python
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()
|