#NEWLINE# def set_volume_level( self , volume ) : #NEWLINE# #INDENT# 'Set volume level, range 0..1.' #NEWLINE# volume_percent = str ( int ( ( volume * 100 ) ) ) #NEWLINE# self . _lms . query ( self . _id , 'mixer' , 'volume' , volume_percent ) #NEWLINE# self . update_ha_state ( )