#NEWLINE# def update( self ) : #NEWLINE# #INDENT# 'Get the latest details from the device.' #NEWLINE# if self . _receiver . on : #NEWLINE# #INDENT# self . _pwstate = STATE_ON #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _pwstate = STATE_OFF #NEWLINE# #UNINDENT# self . _muted = self . _receiver . mute #NEWLINE# self . _volume = ( ( self . _receiver . volume / 100 ) + 1 ) #NEWLINE# if ( self . source_list is None ) : #NEWLINE# #INDENT# self . build_source_list ( ) #NEWLINE# #UNINDENT# current_source = self . _receiver . input #NEWLINE# self . _current_source = self . _source_names . get ( current_source , current_source )