diff options
-rwxr-xr-x | src/inverter_bot.py | 6 |
1 files changed, 3 insertions, 3 deletions
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() |