diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-11-06 19:31:59 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-11-06 19:31:59 +0300 |
commit | 5a462e057a63983fee11725ef167262c9fcb5bf5 (patch) | |
tree | a4ee8c462f83a636f8ee71bd9286d128ea3525e0 /src | |
parent | 0e8ec6a03567b25e060a045cf360ebe051065071 (diff) |
fix --ac-current-range
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) |