From 7b6e13b16252bbeb9e240a492bacc8ae3a84ae6a Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 17 Feb 2022 06:19:48 +0100 Subject: [PATCH] Fix more silly typos Just do not code too early in the morning! --- omnia/leds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omnia/leds.py b/omnia/leds.py index 774e9e8..30c7bc7 100644 --- a/omnia/leds.py +++ b/omnia/leds.py @@ -24,9 +24,9 @@ class LED: with open(self.dir/'color') as f: r, g, b = [int(x) for x in f.read().strip().split()] with open(self.dir/'brightness') as f: - brightness = int(f.read.strip()) + brightness = int(f.read().strip()) with open(self.dir/'autonomous') as f: - autonomous = bool(f.read.strip()) + autonomous = bool(f.read().strip()) return LedState(r=r, g=g, b=b, brightness=brightness, autonomous=autonomous) def set(self, state: LedState):