#NEWLINE# @ property #NEWLINE# def state( self ) : #NEWLINE# #INDENT# 'Return the state.' #NEWLINE# if ( self . dweet . data is None ) : #NEWLINE# #INDENT# return STATE_UNKNOWN #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# values = json . dumps ( self . dweet . data [ 0 ] [ 'content' ] ) #NEWLINE# value = template . render_with_possible_json_value ( self . hass , self . _value_template , values ) #NEWLINE# return value