mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-02 06:33:03 +02:00
17 lines
401 B
Python
17 lines
401 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, validate_settings
|
|
|
|
|
|
if __name__ == '__main__':
|
|
setup_logging()
|
|
logging.info("Starting volvo2mqtt version " + VERSION)
|
|
validate_settings()
|
|
set_tz()
|
|
set_mqtt_settings()
|
|
connect()
|
|
authorize()
|
|
update_loop()
|