@@ -170,7 +170,7 @@ class ColorSensor(Sensor):
170170 )
171171
172172 def __init__ (self , address = None , name_pattern = SYSTEM_DEVICE_NAME_CONVENTION , name_exact = False , ** kwargs ):
173- super (ColorSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = [ 'lego-ev3-color' ] , ** kwargs )
173+ super (ColorSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = 'lego-ev3-color' , ** kwargs )
174174
175175 # See calibrate_white() for more details
176176 self .red_max = 300
@@ -506,7 +506,7 @@ class GyroSensor(Sensor):
506506 )
507507
508508 def __init__ (self , address = None , name_pattern = SYSTEM_DEVICE_NAME_CONVENTION , name_exact = False , ** kwargs ):
509- super (GyroSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = [ 'lego-ev3-gyro' ] , ** kwargs )
509+ super (GyroSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = 'lego-ev3-gyro' , ** kwargs )
510510 self ._direct = None
511511
512512 @property
@@ -656,7 +656,7 @@ class InfraredSensor(Sensor, ButtonBase):
656656 on_channel4_beacon = None
657657
658658 def __init__ (self , address = None , name_pattern = SYSTEM_DEVICE_NAME_CONVENTION , name_exact = False , ** kwargs ):
659- super (InfraredSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = [ 'lego-ev3-ir' ] , ** kwargs )
659+ super (InfraredSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = 'lego-ev3-ir' , ** kwargs )
660660
661661 def _normalize_channel (self , channel ):
662662 assert channel >= 1 and channel <= 4 , "channel is %s, it must be 1, 2, 3, or 4" % channel
@@ -808,7 +808,7 @@ class SoundSensor(Sensor):
808808 )
809809
810810 def __init__ (self , address = None , name_pattern = SYSTEM_DEVICE_NAME_CONVENTION , name_exact = False , ** kwargs ):
811- super (SoundSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = [ 'lego-nxt-sound' ] , ** kwargs )
811+ super (SoundSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = 'lego-nxt-sound' , ** kwargs )
812812
813813 @property
814814 def sound_pressure (self ):
@@ -849,7 +849,7 @@ class LightSensor(Sensor):
849849 )
850850
851851 def __init__ (self , address = None , name_pattern = SYSTEM_DEVICE_NAME_CONVENTION , name_exact = False , ** kwargs ):
852- super (LightSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = [ 'lego-nxt-light' ] , ** kwargs )
852+ super (LightSensor , self ).__init__ (address , name_pattern , name_exact , driver_name = 'lego-nxt-light' , ** kwargs )
853853
854854 @property
855855 def reflected_light_intensity (self ):
0 commit comments