update battery sensor logic
parent
051f080f9f
commit
e194bd8c91
|
@ -64,7 +64,7 @@ class BatterySensor():
|
|||
chs = False
|
||||
if blevel.power_plugged == True:
|
||||
chc = True
|
||||
if blevel.secsleft != psutil.POWER_TIME_UNLIMITED and blevel.secsleft != psutil.POWER_TIME_UNKNOWN:
|
||||
if blevel.secsleft != psutil.POWER_TIME_UNKNOWN:
|
||||
chs = True
|
||||
elif blevel.power_plugged is None and blevel.secsleft == psutil.POWER_TIME_UNKNOWN:
|
||||
chc = True
|
||||
|
|
Loading…
Reference in New Issue