Browse Source

Fix battery status

sisyphus
JezerM 3 years ago
parent
commit
36d7133397
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 2
      web-greeter/bridge/__init__.py
  2. 2
      web-greeter/utils/battery.py

2
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(),

2
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):

Loading…
Cancel
Save