Fix check_conservation_mode() function in ideapad_laptop.py (#766)
This commit is contained in:
parent
e2d605085c
commit
7925c21023
|
@ -24,7 +24,7 @@ def conservation_mode(value):
|
|||
|
||||
def check_conservation_mode():
|
||||
try:
|
||||
value = check_output(["cat", CONSERVATION_MODE_FILE], text=True)
|
||||
value = check_output(["cat", CONSERVATION_MODE_FILE], text=True).rstrip()
|
||||
if value == "1": return True
|
||||
elif value == "0": return False
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue