Merge pull request #226 from caianrais/brightness-format-fix

[modules/brightness] Fix return format
This commit is contained in:
tobi-wan-kenobi 2018-02-01 18:57:34 +01:00 committed by GitHub
commit 519dc1dafe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ class Module(bumblebee.engine.Module):
def brightness(self, widget):
if isinstance(self._brightness, float):
return "{:03.0f}%".format(self._brightness)
return "{:3.0f}%".format(self._brightness).strip()
else:
return "n/a"