#NEWLINE# def do_wait_for_temperature( self , temperature ) : #NEWLINE# #INDENT# reading = self . device . get_sysfile_value ( self . temperature_file , int ) #NEWLINE# waiting_start_time = time . time ( ) #NEWLINE# while ( reading > temperature ) : #NEWLINE# #INDENT# self . logger . debug ( 'Device temperature: {}' . format ( reading ) ) #NEWLINE# if ( ( time . time ( ) - waiting_start_time ) > self . temperature_timeout ) : #NEWLINE# #INDENT# self . logger . warning ( 'Reached timeout; current temperature: {}' . format ( reading ) ) #NEWLINE# break #NEWLINE# #UNINDENT# time . sleep ( self . temperature_poll_period ) #NEWLINE# reading = self . device . get_sysfile_value ( self . temperature_file , int )