aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-11-06 19:31:59 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-11-06 19:31:59 +0300
commit5a462e057a63983fee11725ef167262c9fcb5bf5 (patch)
treea4ee8c462f83a636f8ee71bd9286d128ea3525e0
parent0e8ec6a03567b25e060a045cf360ebe051065071 (diff)
fix --ac-current-range
-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)