summaryrefslogtreecommitdiff
path: root/src/inverter_bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/inverter_bot.py')
-rwxr-xr-xsrc/inverter_bot.py4
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()