From de13c016731ffe1c6161c2db6ec6c024d576a654 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Sat, 10 Apr 2021 15:29:55 +0200 Subject: [PATCH] api/nxtdevices: Update color method. This shares the implementation with the PUP color sensors, so update accordingly. --- pybricks/nxtdevices.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pybricks/nxtdevices.py b/pybricks/nxtdevices.py index 82f81d1..708bdb7 100644 --- a/pybricks/nxtdevices.py +++ b/pybricks/nxtdevices.py @@ -81,9 +81,8 @@ class ColorSensor: :returns: ``Color.BLACK``, ``Color.BLUE``, ``Color.GREEN``, ``Color.YELLOW``, - ``Color.RED``, ``Color.WHITE`` or ``None``. - :rtype: :class:`Color <.parameters.Color>`, or ``None`` if no color is - detected. + ``Color.RED``, ``Color.WHITE`` or ``Color.NONE``. + :rtype: :class:`Color <.parameters.Color>` """ pass