#NEWLINE# @ property #NEWLINE# def state( self ) : #NEWLINE# #INDENT# 'Return the state of the sensor.' #NEWLINE# values = self . arest . data #NEWLINE# if ( 'error' in values ) : #NEWLINE# #INDENT# return values [ 'error' ] #NEWLINE# #UNINDENT# value = self . _renderer ( values . get ( 'value' , values . get ( self . _variable , 'N/A' ) ) ) #NEWLINE# return value