Fix more silly typos

Just do not code too early in the morning!
master
LEdoian 3 years ago
parent 953c7abc37
commit 7b6e13b162

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

Loading…
Cancel
Save