summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/inverter-bot2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inverter-bot b/src/inverter-bot
index 2c913ab..8d7203a 100755
--- a/src/inverter-bot
+++ b/src/inverter-bot
@@ -441,7 +441,7 @@ if __name__ == '__main__':
inverter.init(host=args.inverterd_host, port=args.inverterd_port)
# start monitoring
- monitor = InverterMonitor(args.ac_current_range)
+ monitor = InverterMonitor(list(map(lambda x: int(x), args.ac_current_range)))
monitor.set_charging_event_handler(monitor_charging_event_handler)
monitor.set_battery_event_handler(monitor_battery_event_handler)
monitor.set_error_handler(monitor_error_handler)