diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/inverter-bot | 2 |
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) |