#NEWLINE# @ property #NEWLINE# def target_temperature( self ) : #NEWLINE# #INDENT# 'Return the temperature we try to reach.' #NEWLINE# if ( self . device . mode == 'range' ) : #NEWLINE# #INDENT# ( low , high ) = ( self . target_temperature_low , self . target_temperature_high ) #NEWLINE# if ( self . operation == STATE_COOL ) : #NEWLINE# #INDENT# temp = high #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . operation == STATE_HEAT ) : #NEWLINE# #INDENT# temp = low #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . device . structure . weather . current . temperature < self . current_temperature ) : #NEWLINE# #INDENT# temp = low #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# temp = high #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if self . is_away_mode_on : #NEWLINE# #INDENT# temp = ( self . device . away_temperature [ 0 ] or self . device . away_temperature [ 1 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# temp = self . device . target #NEWLINE# #UNINDENT# #UNINDENT# return temp