From 3143b28be17833f066da2649768cd101a7eae9c4 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 6 Dec 2019 14:35:16 +0100 Subject: [PATCH] doc/customdevices: remove custom init string We only need this if the string is different from the auto-generated default, such as when we want to prevent expansion of an enum to a number. --- pybricks/customdevices.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pybricks/customdevices.py b/pybricks/customdevices.py index c4110f7..233501c 100644 --- a/pybricks/customdevices.py +++ b/pybricks/customdevices.py @@ -5,7 +5,7 @@ class AnalogSensor(): """Generic or custom analog sensor.""" def __init__(self, port, check_type=True): - """AnalogSensor(port, check_type=True) + """ Arguments: port (Port): Port to which the sensor is connected. @@ -64,8 +64,8 @@ class AnalogSensor(): class I2CDevice(): """Generic or custom I2C device.""" - def __init__(self, port, check_type=True): - """I2CDevice(port, address) + def __init__(self, port, address): + """ Arguments: port (Port): Port to which the device is connected.