From 36d71333973689dc22b3bdc3523b9bcd10f831f9 Mon Sep 17 00:00:00 2001 From: JezerM Date: Mon, 15 Nov 2021 11:57:33 -0600 Subject: [PATCH] Fix battery status --- web-greeter/bridge/__init__.py | 2 +- web-greeter/utils/battery.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web-greeter/bridge/__init__.py b/web-greeter/bridge/__init__.py index fb8d8ab..157a37c 100644 --- a/web-greeter/bridge/__init__.py +++ b/web-greeter/bridge/__init__.py @@ -118,7 +118,7 @@ def battery_to_dict(battery): return dict( name = battery.get_name(), level = battery.get_level(), - state = battery.get_state(), + status = battery.get_status(), ac_status = battery.get_ac_status(), capacity = battery.get_capacity(), time = battery.get_time(), diff --git a/web-greeter/utils/battery.py b/web-greeter/utils/battery.py index 3ba4c21..ece7242 100644 --- a/web-greeter/utils/battery.py +++ b/web-greeter/utils/battery.py @@ -161,7 +161,7 @@ class Battery: def get_level(self): return self.perc - def get_state(self): + def get_status(self): return self.status def get_ac_status(self):