diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-10-19 05:13:56 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-10-19 05:13:58 +0300 |
commit | 250d9b183b399e9392cb6fe8a191c8940d1b7ed5 (patch) | |
tree | 4c2fe9897de67114f2acb772597c76cbb7018e8a | |
parent | ff14a92b339ee84277ad02ded95fe1fa0cb75c68 (diff) |
inverter_bot: change service start order
-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() |