From 7f9bf586c876a6b384bec979cea56a681bb68e76 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 19 Oct 2022 05:15:23 +0300 Subject: fix again... --- src/inverter_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inverter_bot.py b/src/inverter_bot.py index 9c3425e..cf27ebe 100755 --- a/src/inverter_bot.py +++ b/src/inverter_bot.py @@ -639,14 +639,14 @@ 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) + setacmode(getacmode()) + bot = InverterBot(store=db) bot.enable_logging(BotType.INVERTER) bot.run() -- cgit v1.2.3