#NEWLINE# def create( self , session ) : #NEWLINE# #INDENT# url = self . _get_url ( self ) #NEWLINE# attrs = self . _attrs . copy ( ) #NEWLINE# attrs . pop ( 'meter' , None ) #NEWLINE# resp = session . post ( url , endpoint_filter = self . service , json = [ attrs ] ) #NEWLINE# resp = resp . json ( ) #NEWLINE# self . update_attrs ( ** resp . pop ( ) ) #NEWLINE# self . _reset_dirty ( ) #NEWLINE# return self