#NEWLINE# def __init__( self , hass , intent = None ) : #NEWLINE# #INDENT# 'Initialize the response.' #NEWLINE# self . hass = hass #NEWLINE# self . speech = None #NEWLINE# self . card = None #NEWLINE# self . reprompt = None #NEWLINE# self . session_attributes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . should_end_session = True #NEWLINE# if ( ( value is not None ) and ( 'slots' in intent ) ) : #NEWLINE# #INDENT# self . variables = { key : value [ 'value' ] for ( key , value ) in intent [ 'slots' ] . items ( ) if ( 'value' in value ) } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . variables = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# }