'Get batteries capacity percent.'

@property
def battery_percent(self):

    if ((not batinfo_tag) or (not self.bat.stat)):
        return []
    bsum = 0
    for b in self.bat.stat:
        try:
            bsum += int(b.capacity)
        except ValueError:
            return []
    return int((bsum / len(self.bat.stat)))
