#NEWLINE# def __init__( self , pin ) : #NEWLINE# #INDENT# super ( LegacyFlowSensor , self ) . __init__ ( pin , 'Flow Sensor' ) #NEWLINE# GPIO . setup ( self . pin , GPIO . IN ) #NEWLINE# self . flowing = False #NEWLINE# self . last_flow_reading = None #NEWLINE# self . flow_stop_counter = 0 #NEWLINE# self . flow_count = 0