def format_sensor_bar(self, sensor):
percentage = self.percentage(sensor.current, sensor.critical)<EOL>bar = make_vertical_bar(int(percentage))<EOL>if self.pango_enabled:<EOL><INDENT>if self.dynamic_color:<EOL><INDENT>color = self.colors[int(percentage)]<EOL>return self.format_pango(color, bar)<EOL><DEDENT><DEDENT>return bar<EOL>
Build and format a sensor bar. If pango is enabled bar color is per sensor.