mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Merge branch 'master' into when-active-when-inactive
Conflicts: gpiozero/devices.py gpiozero/input_devices.py
This commit is contained in:
@@ -128,6 +128,7 @@ class SmoothedInputDevice(WaitableInputDevice):
|
||||
|
||||
def _get_threshold(self):
|
||||
return self._threshold
|
||||
|
||||
def _set_threshold(self, value):
|
||||
if not (0.0 < value < 1.0):
|
||||
raise InputDeviceError('threshold must be between zero and one exclusive')
|
||||
@@ -208,6 +209,7 @@ class LightSensor(SmoothedInputDevice):
|
||||
wait_for_dark = _alias('wait_for_inactive')
|
||||
|
||||
|
||||
|
||||
class TemperatureSensor(W1ThermSensor):
|
||||
@property
|
||||
def value(self):
|
||||
|
||||
Reference in New Issue
Block a user