code: def format_sensor(self, sensor):
          
          current_val = sensor.current
          if self.pango_enabled:
              percentage = self.percentage(sensor.current, sensor.critical)
              if self.dynamic_color:
                  color = self.colors[int(percentage)]
                  return self.format_pango(color, current_val)
          return current_val
docs: Format a sensor value. If pango is enabled color is per sensor.