# HG changeset patch # User Daniel O'Connor # Date 1639449252 -37800 # Node ID 64d0d5aaf329d635fd8bc84252f81300919900e4 # Parent 41eba85c0c84c66c93d7f7a690d4d0b29024e189 Report time remaining as None when charging, the value is apparently meaningless then. diff -r 41eba85c0c84 -r 64d0d5aaf329 eprodbus.py --- a/eprodbus.py Mon Dec 13 23:04:37 2021 +1030 +++ b/eprodbus.py Tue Dec 14 13:04:12 2021 +1030 @@ -67,7 +67,11 @@ self.dbusservice['/ConsumedAmphours'] = p.amphrs elif type(p) == epro.TimeRemaining: # ePro reports in minutes, Venus expects seconds - self.dbusservice['/TimeToGo'] = p.time * 60 + if p.time >= 0: + self.dbusservice['/TimeToGo'] = p.time * 60 + else: + # Battery is charging + self.dbusservice['/TimeToGo'] = None elif type(p) == epro.AuxVoltage: self.dbusservice['/Dc/1/Voltage'] = p.volts elif type(p) == epro.MonitorStatus: