From 250d9b183b399e9392cb6fe8a191c8940d1b7ed5 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 19 Oct 2022 05:13:56 +0300 Subject: inverter_bot: change service start order --- src/inverter_bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inverter_bot.py') diff --git a/src/inverter_bot.py b/src/inverter_bot.py index f00e36d..9c3425e 100755 --- a/src/inverter_bot.py +++ b/src/inverter_bot.py @@ -639,17 +639,17 @@ if __name__ == '__main__': db = InverterStore() + setacmode(getacmode()) + monitor = InverterMonitor() monitor.set_charging_event_handler(monitor_charging) monitor.set_battery_event_handler(monitor_battery) monitor.set_util_event_handler(monitor_util) monitor.set_error_handler(monitor_error) - monitor.start() - - setacmode(getacmode()) bot = InverterBot(store=db) bot.enable_logging(BotType.INVERTER) bot.run() + monitor.start() monitor.stop() -- cgit v1.2.3