This commit is contained in:
Nicolò Balzarotti 2023-01-05 15:51:31 +01:00
parent 7cfbb3f56b
commit 3c6f920221
1 changed files with 2 additions and 0 deletions

View File

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