Fix check_conservation_mode() function in ideapad_laptop.py (#766)

This commit is contained in:
Geffo029 2024-08-23 14:52:29 +02:00 committed by GitHub
parent e2d605085c
commit 7925c21023
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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: