mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user