#NEWLINE# def set_temperature( self , temperature ) : #NEWLINE# #INDENT# 'Set new target temperature.' #NEWLINE# if ( self . device . mode == 'range' ) : #NEWLINE# #INDENT# if ( self . target_temperature == self . target_temperature_low ) : #NEWLINE# #INDENT# temperature = ( temperature , self . target_temperature_high ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . target_temperature == self . target_temperature_high ) : #NEWLINE# #INDENT# temperature = ( self . target_temperature_low , self ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . device . target = temperature