diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-10-19 05:15:23 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-10-19 05:15:23 +0300 |
commit | 7f9bf586c876a6b384bec979cea56a681bb68e76 (patch) | |
tree | 035e0fe5c021d53ec7768cf1b3898b38fe4ba5b8 | |
parent | 250d9b183b399e9392cb6fe8a191c8940d1b7ed5 (diff) |
fix again...
-rwxr-xr-x | src/inverter_bot.py | 4 |
1 files 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() |