From 0d068b17f2779edb65fdde709771e7dd39a50f6b Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Thu, 20 Feb 2020 16:23:26 +0100 Subject: [PATCH] api/iodevices/AnalogSensor: remove type check This makes it consistent with the UARTDevice and I2CDevice class. The `Ev3devSensor` class can be used instead if auto id is desired. --- pybricks/iodevices.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pybricks/iodevices.py b/pybricks/iodevices.py index 2706c84..64acb28 100644 --- a/pybricks/iodevices.py +++ b/pybricks/iodevices.py @@ -60,18 +60,11 @@ class Ev3devSensor(): class AnalogSensor(): """Generic or custom analog sensor.""" - def __init__(self, port, check_type=True): + def __init__(self, port): """ Arguments: port (Port): Port to which the sensor is connected. - verify_type(bool): Verify that the sensor is detected as an analog - sensor (*Default*: ``True``). - - If you choose ``verify_type=False``, the EV3 will treat it as - an analog sensor even if no such sensor is detected. This is - useful if you have a (custom) analog sensor that is not - detected automatically. """ pass