aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lid.py b/src/plugins/lid.py
index c307abb..ed25bf8 100644
--- a/src/plugins/lid.py
+++ b/src/plugins/lid.py
@@ -37,5 +37,5 @@ class Lid:
'''
if not os.path.exists('/proc/acpi/button/lid/LID/state'):
return None
- with open('/proc/acpi/button/lid/LID/state') as file:
- return 'open' in file.read.decode('utf-8', 'strict')
+ with open('/proc/acpi/button/lid/LID/state', 'rb') as file:
+ return 'open' in file.read().decode('utf-8', 'strict')