PEP 8 (I'm bored): battery

This commit is contained in:
enkore 2014-10-14 16:32:07 +02:00
parent 146b952180
commit f6e910c114

View File

@ -133,6 +133,7 @@ class BatteryChecker(IntervalModule):
("not_present_color", "The not present color."),
("no_text_full", "Don't display text when battery is full - 100%"),
)
battery_ident = "BAT0"
format = "{status} {remaining}"
status = {
@ -173,7 +174,7 @@ class BatteryChecker(IntervalModule):
}
return
if self.no_text_full:
if battery.status() == 'Full':
if battery.status() == "Full":
self.output = {
"full_text": ""
}