Fix check_conservation_mode() function in ideapad_laptop.py

This commit is contained in:
stefano 2024-08-23 14:08:37 +02:00
parent e2d605085c
commit 0e1a6f28e1

View File

@ -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: