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