fixup
This commit is contained in:
parent
7cfbb3f56b
commit
3c6f920221
|
@ -26,6 +26,8 @@ class Sensor():
|
||||||
|
|
||||||
class GPIOState(Sensor):
|
class GPIOState(Sensor):
|
||||||
def __init__(self, pin, transform=lambda x: 1-x):
|
def __init__(self, pin, transform=lambda x: 1-x):
|
||||||
|
self.measure = 'Switch'
|
||||||
|
|
||||||
self.pin = pin
|
self.pin = pin
|
||||||
self.transform = transform
|
self.transform = transform
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue