'Retrieve configurations of node.'

@ha.callback
def get(self, request, node_id):

    nodeid = int(node_id)
    hass = request.app['hass']
    network = hass.data.get(const.DATA_NETWORK)
    node = network.nodes.get(nodeid)
    if (node is None):
        return self.json_message('Node    not    found', HTTP_NOT_FOUND)
    config = {}
    for value in node.get_values(class_id=const.COMMAND_CLASS_CONFIGURATION).values():
        config[value.index] = {'label': value.label, 'type': value.type, 'help': value.help, 'data_items': value.data_items, 'data': value.data, 'max': value.max, 'min': value.min}
    return self.json(config)
