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.
This commit is contained in:
Laurens Valk
2020-02-20 16:23:26 +01:00
parent b81b28d338
commit 0d068b17f2
+1 -8
View File
@@ -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