diff --git a/i3pystatus/battery.py b/i3pystatus/battery.py index 4f4917b..e812e76 100644 --- a/i3pystatus/battery.py +++ b/i3pystatus/battery.py @@ -345,7 +345,7 @@ class BatteryChecker(IntervalModule): if self.alert and fdict["status"] == "DIS" and fdict["percentage"] <= self.alert_percentage: title, body = formatp(self.alert_format_title, **fdict), formatp(self.alert_format_body, **fdict) - if not self.notification: + if self.notification is None: self.notification = DesktopNotification( title=title, body=body,