diff --git a/bumblebee/modules/battery_all.py b/bumblebee/modules/battery_all.py index 2fe965c..8e1b8f7 100644 --- a/bumblebee/modules/battery_all.py +++ b/bumblebee/modules/battery_all.py @@ -88,7 +88,7 @@ class Module(bumblebee.engine.Module): def state(self, widget): state = [] - capacity = widget.get("capacity") + capacity = widget.get("capacity", -1) if capacity < 0: return ["critical", "unknown"]