'Update stats views.'

def update_views(self):

    super(Plugin, self).update_views()
    for i in self.stats:
        if (not i['value']):
            continue
        if (i['type'] == 'battery'):
            self.views[i[self.get_key()]]['value']['decoration'] = self.get_alert((100 - i['value']), header=i['type'])
        else:
            self.views[i[self.get_key()]]['value']['decoration'] = self.get_alert(i['value'], header=i['type'])
