mirror of
https://github.com/powerline/powerline.git
synced 2025-09-26 03:19:07 +02:00
Merge pull request #1524 from mrshu/mrshu/fix-dbus-battery-status
fix: Make dbus battery status consistent
This commit is contained in:
commit
6d7f242e1b
@ -57,7 +57,7 @@ def _fetch_battery_info(pl):
|
|||||||
dbus.Interface(dev, dbus_interface=devinterface).Get(
|
dbus.Interface(dev, dbus_interface=devinterface).Get(
|
||||||
devtype_name,
|
devtype_name,
|
||||||
'State'
|
'State'
|
||||||
) == 1
|
) != 2
|
||||||
)
|
)
|
||||||
pl.debug('Not using DBUS+UPower as no batteries were found')
|
pl.debug('Not using DBUS+UPower as no batteries were found')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user