From 3c6f9202218e484c36769eddf0c4cf6ac0275bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Thu, 5 Jan 2023 15:51:31 +0100 Subject: [PATCH] fixup --- sensors.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sensors.py b/sensors.py index 5abc371..eed1b43 100644 --- a/sensors.py +++ b/sensors.py @@ -26,6 +26,8 @@ class Sensor(): class GPIOState(Sensor): def __init__(self, pin, transform=lambda x: 1-x): + self.measure = 'Switch' + self.pin = pin self.transform = transform