PEP 8 (I'm bored): battery
This commit is contained in:
parent
146b952180
commit
f6e910c114
@ -131,8 +131,9 @@ class BatteryChecker(IntervalModule):
|
|||||||
("charging_color", "The charging color"),
|
("charging_color", "The charging color"),
|
||||||
("critical_color", "The critical color"),
|
("critical_color", "The critical color"),
|
||||||
("not_present_color", "The not present color."),
|
("not_present_color", "The not present color."),
|
||||||
("no_text_full","Don't display text when battery is full - 100%"),
|
("no_text_full", "Don't display text when battery is full - 100%"),
|
||||||
)
|
)
|
||||||
|
|
||||||
battery_ident = "BAT0"
|
battery_ident = "BAT0"
|
||||||
format = "{status} {remaining}"
|
format = "{status} {remaining}"
|
||||||
status = {
|
status = {
|
||||||
@ -173,7 +174,7 @@ class BatteryChecker(IntervalModule):
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
if self.no_text_full:
|
if self.no_text_full:
|
||||||
if battery.status() == 'Full':
|
if battery.status() == "Full":
|
||||||
self.output = {
|
self.output = {
|
||||||
"full_text": ""
|
"full_text": ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user