We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8f043c commit a91556eCopy full SHA for a91556e
yafi/battery.py
@@ -50,6 +50,9 @@ def __init__(self, **kwargs):
50
51
def setup(self, app):
52
battery = ec_commands.memmap.get_battery_values(app.cros_ec)
53
+ if not battery:
54
+ self.batt_status.set_subtitle("No data")
55
+ return
56
self.batt_manu.set_subtitle(battery["manufacturer"])
57
self.batt_model.set_subtitle(battery["model"])
58
self.batt_serial.set_subtitle(battery["serial"])
0 commit comments