#NEWLINE# def __init__( self , sensor_type , argument = '' ) : #NEWLINE# #INDENT# 'Initialize the sensor.' #NEWLINE# self . _name = ( ( SENSOR_TYPES [ sensor_type ] [ 0 ] + ' ' ) + argument ) #NEWLINE# self . argument = argument #NEWLINE# self . type = sensor_type #NEWLINE# self . _state = None #NEWLINE# self . _unit_of_measurement = SENSOR_TYPES [ sensor_type ] [ 1 ] #NEWLINE# self . update ( )