@@ -24,14 +24,14 @@ class Device:
2424 62 : ("DistanceSensor" , "Distance Sensor" ), # 45604
2525 63 : ("ForceSensor" , "Force Sensor" ), # 45606
2626 64 : ("Matrix" , "3x3 Color Light Matrix" ), # 45608
27- 38 : ("Motor" , "Medium Linear Motor" ), # 88008
28- 46 : ("Motor" , "Large Motor" ), # 88013
29- 47 : ("Motor" , "XL Motor" ), # 88014
30- 48 : ("Motor" , "Medium Angular Motor (Cyan)" ), # 45603
31- 49 : ("Motor" , "Large Angular Motor (Cyan)" ), # 45602
32- 65 : ("Motor" , "Small Angular Motor" ), # 45607
33- 75 : ("Motor" , "Medium Angular Motor (Grey)" ), # 88018
34- 76 : ("Motor" , "Large Angular Motor (Grey)" )} # 88017
27+ 38 : ([ "Motor" , "TargetTrackerMotor" ] , "Medium Linear Motor" ), # 88008
28+ 46 : ([ "Motor" , "TargetTrackerMotor" ] , "Large Motor" ), # 88013
29+ 47 : ([ "Motor" , "TargetTrackerMotor" ] , "XL Motor" ), # 88014
30+ 48 : ([ "Motor" , "TargetTrackerMotor" ] , "Medium Angular Motor (Cyan)" ), # 45603
31+ 49 : ([ "Motor" , "TargetTrackerMotor" ] , "Large Angular Motor (Cyan)" ), # 45602
32+ 65 : ([ "Motor" , "TargetTrackerMotor" ] , "Small Angular Motor" ), # 45607
33+ 75 : ([ "Motor" , "TargetTrackerMotor" ] , "Medium Angular Motor (Grey)" ), # 88018
34+ 76 : ([ "Motor" , "TargetTrackerMotor" ] , "Large Angular Motor (Grey)" )} # 88017
3535
3636 _used = {0 : False ,
3737 1 : False ,
@@ -63,7 +63,7 @@ def __init__(self, port):
6363 self ._interval = 10
6464 if (
6565 self ._typeid in Device ._device_names
66- and Device ._device_names [self ._typeid ][0 ] != type ( self ). __name__ # noqa: W503
66+ and type ( self ). __name__ not in Device ._device_names [self ._typeid ][0 ] # noqa: W503
6767 ) or self ._typeid == - 1 :
6868 raise DeviceError (f'There is not a { type (self ).__name__ } connected to port { port } (Found { self .name } )' )
6969 Device ._used [p ] = True
0 commit comments